mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Reduced the number of file includes. Only load admin language files when necessary.
This commit is contained in:
@@ -1941,6 +1941,8 @@ function include_lan_admin($path)
|
||||
//DEPRECATED - use e107::loadLanFiles();
|
||||
function loadLanFiles($unitName, $type='runtime')
|
||||
{
|
||||
$info = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
|
||||
e107::getMessage()->addDebug("Using deprecated function loanLanFiles(). Replace with e107::loadLanFiles().".print_a($info,true));
|
||||
return e107::loadLanFiles($unitName, $type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user