mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Language file cleaning method now removes empty defines.
This commit is contained in:
parent
3892f5e6b2
commit
c4f1f1c04d
@ -367,7 +367,9 @@ class lancheck
|
||||
$core = array();
|
||||
|
||||
$coredir = array('admin' => 'e107_admin', 'files' => 'e107_files', 'images' => 'e107_images', 'themes' => 'e107_themes', 'plugins' => 'e107_plugins', 'handlers' => 'e107_handlers', 'languages' => 'e107_languages', 'downloads' => 'e107_downloads', 'docs' => 'e107_docs');
|
||||
|
||||
|
||||
$core_image = array();
|
||||
|
||||
require_once(e_ADMIN."core_image.php");
|
||||
|
||||
unset($core_image['e107_images'],$core_image['e107_files'],$core_image['e107_admin']);
|
||||
@ -1945,6 +1947,11 @@ class lancheck
|
||||
|
||||
}
|
||||
|
||||
if(strpos($ln, '""') !== false || strpos($ln, "''") !== false) // empty
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(strpos($ln,'//') !==false)
|
||||
{
|
||||
$new .= $ln."\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user