1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Avoid "Missing file" message for deprecated files in language-Packs verification

Deprecated files were taken into account only for language other than
English
This commit is contained in:
OTroccaz 2016-03-30 19:01:51 +02:00
parent 324be8ebdc
commit 5d8f84c29a

View File

@ -1285,7 +1285,7 @@ class lancheck
{
$tp = e107::getParser();
// $sql->db_Mark_Time('Start Get Core Lan Phrases English');
$English = $this->get_comp_lan_phrases(e_LANGUAGEDIR."English/".$subdir,$checklan);
$English = $this->get_comp_lan_phrases(e_LANGUAGEDIR."English/".$subdir,"English");
// $sql->db_Mark_Time('End Get Core Lan Phrases English');
$check = $this->get_comp_lan_phrases(e_LANGUAGEDIR.$checklan."/".$subdir,$checklan);
@ -1544,7 +1544,7 @@ class lancheck
foreach($lang_array as $k=> $f)
{
$path = str_replace(e_LANGUAGEDIR.e_LANGUAGE."/", "", $f['path'].$f['fname']);
$path = str_replace(e_LANGUAGEDIR.$lang."/", "", $f['path'].$f['fname']);
if(in_array($path, $this->deprecatedFiles))
{