mirror of
https://github.com/e107inc/e107.git
synced 2025-09-08 21:30:54 +02:00
Reduced the number of file includes. Only load admin language files when necessary.
This commit is contained in:
@@ -943,6 +943,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
|
||||
$plugs = e107::getObject('e107plugin');
|
||||
|
||||
|
||||
|
||||
if(vartrue($pref['plug_installed']))
|
||||
{
|
||||
foreach($pref['plug_installed'] as $plug=>$vers)
|
||||
@@ -969,8 +971,12 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
{
|
||||
continue;
|
||||
}
|
||||
loadLanFiles($plugin_path, 'admin');
|
||||
|
||||
if(!in_array($plugin_path, $pref['lan_global_list']))
|
||||
{
|
||||
e107::loadLanFiles($plugin_path, 'admin');
|
||||
}
|
||||
|
||||
$att = $tag['@attributes'];
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user