Fixed problems with view godmode extensions. Tiquet: #2912
This commit is contained in:
parent
e93606bda4
commit
7ca6cff969
|
@ -588,7 +588,7 @@ function menu_get_sec_pages($sec, $menu_hash = false) {
|
|||
if (isset($sec)) {
|
||||
|
||||
// Get the sec2 of the main section
|
||||
//$sec2_array[$menu[$sec]['sec2']] = $menu[$sec]['text'];
|
||||
$sec2_array[$menu[$sec]['sec2']] = $menu[$sec]['text'];
|
||||
|
||||
|
||||
// Get the sec2 of the subsections
|
||||
|
|
|
@ -634,7 +634,10 @@ else {
|
|||
if ($sec == 'extensions')
|
||||
$main_sec = get_parameter('extension_in_menu');
|
||||
else
|
||||
$main_sec = $sec;
|
||||
if ($sec == 'gextensions')
|
||||
+ $main_sec = get_parameter('extension_in_menu');
|
||||
else
|
||||
$main_sec = $sec;
|
||||
$sec = $sec2;
|
||||
$sec2 = '';
|
||||
}
|
||||
|
@ -647,20 +650,23 @@ else {
|
|||
require ("general/noaccess.php");
|
||||
|
||||
}
|
||||
elseif (file_exists ($page)) {
|
||||
if (! extensions_is_extension ($page)) {
|
||||
|
||||
require_once($page);
|
||||
}
|
||||
else {
|
||||
if ($sec[0] == 'g')
|
||||
extensions_call_godmode_function (basename ($page));
|
||||
else
|
||||
extensions_call_main_function (basename ($page));
|
||||
}
|
||||
}
|
||||
else {
|
||||
ui_print_error_message(__('Sorry! I can\'t find the page!'));
|
||||
$sec = $main_sec;
|
||||
if (file_exists ($page)) {
|
||||
if (! extensions_is_extension ($page)) {
|
||||
|
||||
require_once($page);
|
||||
}
|
||||
else {
|
||||
if ($sec[0] == 'g')
|
||||
extensions_call_godmode_function (basename ($page));
|
||||
else
|
||||
extensions_call_main_function (basename ($page));
|
||||
}
|
||||
}
|
||||
else {
|
||||
ui_print_error_message(__('Sorry! I can\'t find the page!'));
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue