forked from extern/egroupware
Reverted accidently made commit for class.egw_framework.inc.php
This commit is contained in:
parent
eadeb57f28
commit
c525cadcdb
@ -818,19 +818,6 @@ abstract class egw_framework
|
|||||||
// add link registry to non-popup windows, if explicit requested (idots_framework::navbar() loads it, if not explicit specified!)
|
// add link registry to non-popup windows, if explicit requested (idots_framework::navbar() loads it, if not explicit specified!)
|
||||||
if ($GLOBALS['egw_info']['flags']['js_link_registry'])
|
if ($GLOBALS['egw_info']['flags']['js_link_registry'])
|
||||||
{
|
{
|
||||||
$langs = array();
|
|
||||||
|
|
||||||
// load translations
|
|
||||||
translation::add_app('etemplate');
|
|
||||||
foreach(translation::$loaded_apps as $app => $lang)
|
|
||||||
{
|
|
||||||
$langs[] = array(
|
|
||||||
"app" => $app,
|
|
||||||
"lang" => $lang
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$java_script .= "egw.langRequire(window, ".json_encode($langs).");\n";
|
|
||||||
$java_script .= 'egw.set_preferences('.json_encode($GLOBALS['egw_info']['user']['preferences']['common']).', "common");'."\n";
|
$java_script .= 'egw.set_preferences('.json_encode($GLOBALS['egw_info']['user']['preferences']['common']).', "common");'."\n";
|
||||||
$java_script .= 'egw.set_user('.$GLOBALS['egw']->accounts->json($GLOBALS['egw_info']['user']['account_id']).');'."\n";
|
$java_script .= 'egw.set_user('.$GLOBALS['egw']->accounts->json($GLOBALS['egw_info']['user']['account_id']).');'."\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user