Permalink
Browse files

fix preference link

for XOOPS Cube not installed altsys.
  • Loading branch information...
maruTA-bis5 committed Jul 23, 2014
1 parent 799a2bb commit cf338525aa706242583d06c495b29e69779d58bc
Showing with 7 additions and 2 deletions.
  1. +7 −2 xoops_trust_path/modules/protector/admin/mymenu.php
@@ -41,8 +41,13 @@
$title = defined( '_MD_A_MYMENU_MYPREFERENCES' ) ? _MD_A_MYMENU_MYPREFERENCES : _PREFERENCES ;
array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences' ) ) ;
} else {
// system->preferences
array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$xoopsModule->mid() ) ) ;
if ( $module_handler->getByDirName('legacy') !== FALSE ) {
// legacy->preferences
array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$xoopsModule->mid() ) ) ;
} else {
// system->preferences
array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$xoopsModule->mid() ) ) ;
}
}
}

0 comments on commit cf33852

Please sign in to comment.