2013-06-25 Miguel de Dios <miguel.dedios@artica.es>

* godmode/menu.php: fixed the default value for refresh in the
	extensions.
	
	Fixes: #2310
	
	* include/functions_extensions.php: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-06-25 13:30:13 +00:00
parent d1a999334f
commit 84d47d8e9d
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2013-06-25 Miguel de Dios <miguel.dedios@artica.es>
* godmode/menu.php: fixed the default value for refresh in the
extensions.
Fixes: #2310
* include/functions_extensions.php: cleaned source code style.
2013-06-25 Miguel de Dios <miguel.dedios@artica.es>
* operation/users/user_edit.php: fixed the "home page" for user,

View File

@ -49,6 +49,7 @@ if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0,
$menu_godmode["gagente"]["sub"] = $sub;
}
}
if (check_acl ($config['id_user'], 0, "AW")) {
@ -276,7 +277,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = $config['refr'];
}
else {
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 60;
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 0;
}
}
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["icon"] = $extmenu['icon'];

View File

@ -336,7 +336,7 @@ function extensions_add_godmode_menu_option ($name, $acl, $fatherId = null, $ico
$option_menu['acl'] = $acl;
$option_menu['name'] = $name;
$extension = &$config['extensions'][$extension_file];
$option_menu['sec2'] = $extension['dir'].'/'.mb_substr ($extension_file, 0, -4);
$option_menu['sec2'] = $extension['dir'] . '/' . mb_substr ($extension_file, 0, -4);
$option_menu['fatherId'] = $fatherId;
$option_menu['icon'] = $icon;
$option_menu['version'] = $version;