mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 08:34:09 +02:00
plugin language files autoload - backward compatibility, also #15 related
This commit is contained in:
@@ -20,10 +20,23 @@ if (!defined('e107_INIT'))
|
||||
|
||||
header('Content-type: text/html; charset=utf-8', TRUE);
|
||||
|
||||
|
||||
### Language files
|
||||
e107::coreLan('header', true);
|
||||
e107::coreLan('footer', true);
|
||||
|
||||
// DEPRECATED - plugins should load their lans manually
|
||||
// plugin autoload, will be removed in the future!
|
||||
// here mostly because of BC reasons
|
||||
$_plugins = e107::getPref('plug_installed');
|
||||
if(is_array($_plugins) && count($_plugins) > 0)
|
||||
{
|
||||
$_plugins = array_keys($_plugins);
|
||||
foreach ($_plugins as $_p)
|
||||
{
|
||||
e107::loadLanFiles($_p, 'admin');
|
||||
}
|
||||
}
|
||||
|
||||
// Get Icon constants, theme override (theme/templates/admin_icons_template.php) is allowed
|
||||
include_once(e107::coreTemplatePath('admin_icons'));
|
||||
|
||||
@@ -383,4 +396,3 @@ if (!function_exists("parse_admin"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user