Fixed problems with view godmode extensions. Tiquet: #2912

This commit is contained in:
m-lopez-f 2015-10-20 09:42:34 +02:00
parent e93606bda4
commit 7ca6cff969
2 changed files with 21 additions and 15 deletions

View File

@ -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

View File

@ -633,6 +633,9 @@ else {
if ($main_sec == false) {
if ($sec == 'extensions')
$main_sec = get_parameter('extension_in_menu');
else
if ($sec == 'gextensions')
+ $main_sec = get_parameter('extension_in_menu');
else
$main_sec = $sec;
$sec = $sec2;
@ -647,7 +650,9 @@ else {
require ("general/noaccess.php");
}
elseif (file_exists ($page)) {
else {
$sec = $main_sec;
if (file_exists ($page)) {
if (! extensions_is_extension ($page)) {
require_once($page);
@ -663,6 +668,7 @@ else {
ui_print_error_message(__('Sorry! I can\'t find the page!'));
}
}
}
else {
//home screen chosen by the user
$home_page ='';