Skip to content
Snippets Groups Projects
Commit e5164cbe authored by Demian Katz's avatar Demian Katz
Browse files

Simplified code.

parent 2faafbeb
No related merge requests found
......@@ -114,14 +114,7 @@ class DevtoolsController extends \VuFind\Controller\AbstractBase
protected function findMissingLanguageStrings($lang1, $lang2)
{
// Find strings missing from language 2:
$notInL2 = array();
$l2Keys = array_keys((array)$lang2);
foreach ($lang1 as $key => $junk) {
if (!in_array($key, $l2Keys)) {
$notInL2[] = $key;
}
}
return $notInL2;
return array_diff(array_keys((array)$lang1), array_keys((array)$lang2));
}
/**
......
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