1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 01:30:32 +02:00

Issue #6 Language-file optimization.

This commit is contained in:
Cameron
2015-07-10 15:41:07 -07:00
parent c3d8cd9236
commit 9c6cfc0b86
10 changed files with 44 additions and 30 deletions

View File

@@ -1269,7 +1269,7 @@ class lancheck
else
{
$this->checkLog('file',1);
$this->newFile(e_LANGUAGEDIR.$checklan."/".$subdir.$lnk,$checklan);
// $this->newFile(e_LANGUAGEDIR.$checklan."/".$subdir.$lnk,$checklan);
$text .= "<tr>
<td class='forumheader3' style='width:45%'>{$lnk}</td>
<td class='forumheader' style='width:50%'>".LAN_CHECK_4."</td>"; // file missing.
@@ -1694,8 +1694,9 @@ class lancheck
$f2 = $lan."_custom.php";
$root_file = e_LANGUAGEDIR.$lan."/".$lan."_custom.php";
}
$this->newFile($dir2.$f2,$lan);
$writable = (is_writable($dir2)) ? TRUE : FALSE;
$trans = $this->get_lan_file_phrases($dir1,$dir2,$f1,$f2);
$keys = array_keys($trans);