- Timestamp:
- Mar 22, 2011, 3:58:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdditionalPages/branch/2.1/admin/config.inc.php
r9546 r9823 45 45 conf_update_param('additional_pages', pwg_db_real_escape_string(serialize($conf['AP']))); 46 46 47 if ( isset($_POST['show_menu']) xor (!isset($mb_conf['mbAdditionalPages']) or $mb_conf['mbAdditionalPages'] > 0))47 if (!defined('AMM_VERSION') or version_compare(AMM_VERSION, '3.0.0', '<')) 48 48 { 49 if ( !isset($mb_conf['mbAdditionalPages']))49 if (isset($_POST['show_menu']) xor (!isset($mb_conf['mbAdditionalPages']) or $mb_conf['mbAdditionalPages'] > 0)) 50 50 { 51 $last = @abs(end($mb_conf)); 52 $mb_conf['mbAdditionalPages'] = $last + 50; 51 if (!isset($mb_conf['mbAdditionalPages'])) 52 { 53 $last = @abs(end($mb_conf)); 54 $mb_conf['mbAdditionalPages'] = $last + 50; 55 } 56 $mb_conf['mbAdditionalPages'] = (isset($_POST['show_menu']) ? +1 : -1) * abs($mb_conf['mbAdditionalPages']); 57 conf_update_param('blk_menubar', pwg_db_real_escape_string(serialize($mb_conf))); 53 58 } 54 $mb_conf['mbAdditionalPages'] = (isset($_POST['show_menu']) ? +1 : -1) * abs($mb_conf['mbAdditionalPages']);55 conf_update_param('blk_menubar', pwg_db_real_escape_string(serialize($mb_conf)));56 59 } 57 60 … … 80 83 'ap_conf' => $conf['AP'], 81 84 'SHOW_MENU' => (!isset($mb_conf['mbAdditionalPages']) or $mb_conf['mbAdditionalPages'] > 0), 82 'AMM_INSTALLED' => defined('AMM_PATH'),85 'AMM_INSTALLED' => (defined('AMM_VERSION') and version_compare(AMM_VERSION, '3.0.0', '>=')), 83 86 ) 84 87 ); 85 88 86 if (defined('AMM_ PATH'))89 if (defined('AMM_VERSION') and version_compare(AMM_VERSION, '3.0.0', '>=')) 87 90 { 88 91 load_language('plugin.lang', AMM_PATH);
Note: See TracChangeset
for help on using the changeset viewer.