Commit efe268ae authored by Aria Givi's avatar Aria Givi
Browse files

Unnötige Variable entfernt

parent 11d525ca
...@@ -49,7 +49,6 @@ class LanguageController extends Controller ...@@ -49,7 +49,6 @@ class LanguageController extends Controller
} }
} }
die(var_dump($sum));
$deComplete = $langTexts["de"]["textCount"] === count($sum) ? true : false; $deComplete = $langTexts["de"]["textCount"] === count($sum) ? true : false;
return view('languages.overview') return view('languages.overview')
->with('title', trans('titles.languages')) ->with('title', trans('titles.languages'))
...@@ -129,15 +128,10 @@ class LanguageController extends Controller ...@@ -129,15 +128,10 @@ class LanguageController extends Controller
continue; continue;
} }
$complete = true;
foreach ($languages as $lang => $value) { foreach ($languages as $lang => $value) {
if ($lang !== $to) { if ($lang !== $to) {
$langs = array_add($langs, $lang, $lang); $langs = array_add($langs, $lang, $lang);
} }
if (!isset($languages[$to]) && isset($languages[$lang])) {
$complete = false;
}
} }
if (!isset($languages[$to])) { if (!isset($languages[$to])) {
$fn = $filePath[$filename]; $fn = $filePath[$filename];
...@@ -478,7 +472,7 @@ class LanguageController extends Controller ...@@ -478,7 +472,7 @@ class LanguageController extends Controller
return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== false); return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== false);
} }
private function extractLanguage($key) private function extractLanguage($key)
{ {
#Kürzt bspw. "_new_de_redirect bzw. "de_redirect" zu "de" #Kürzt bspw. "_new_de_redirect bzw. "de_redirect" zu "de"
preg_match("/^(?:_new_)?([^_]*)/", $key, $matches); preg_match("/^(?:_new_)?([^_]*)/", $key, $matches);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment