Changeset 4342 for extensions
- Timestamp:
- Nov 22, 2009, 6:34:35 PM (14 years ago)
- Location:
- extensions/event_cats
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/autolog_entries.inc.php
r4336 r4342 113 113 case 2: // Additional Page 114 114 $url_end = ($ec_entry['forced'] == 'true') ? '' : '&ap='.$arg2; 115 $dspl = ( EC_AP_OK) ? sprintf(115 $dspl = (defined('ADD_PAGES_TABLE')) ? sprintf( 116 116 l10n('ec_dspl_ok_ap'), 117 117 $arg2, $ec_lists['add_pages'][$arg2_int] … … 126 126 } 127 127 else { 128 $dspl = ( EC_AP_OK) ? sprintf(128 $dspl = (defined('ADD_PAGES_TABLE')) ? sprintf( 129 129 l10n('ec_dspl_ok_ap'), 130 130 $arg2, $ec_lists['add_pages'][$arg2_int] … … 220 220 } 221 221 222 $template->assign('ec_ap_ok', EC_AP_OK);222 $template->assign('ec_ap_ok', defined('ADD_PAGES_TABLE')); 223 223 $template->assign('ec_ap_ok2', (count($ec_lists['add_pages']) > 0)); 224 224 $template->assign('code_list', $code_list); -
extensions/event_cats/admin/autolog_new.inc.php
r4336 r4342 103 103 "))) == 0)); 104 104 $template->assign('ec_is_creation', $ec_is_creation); 105 $template->assign('ec_ap_ok', EC_AP_OK);105 $template->assign('ec_ap_ok', defined('ADD_PAGES_TABLE')); 106 106 $template->assign('ec_lists', $ec_lists); 107 107 $template->assign('ec_default_entry', $ec_default_entry); -
extensions/event_cats/admin/config.inc.php
r4336 r4342 62 62 load_language('plugin.lang', EVNTCATS_PATH); 63 63 64 $template->assign('ec_ap_ok', EC_AP_OK);64 $template->assign('ec_ap_ok', defined('ADD_PAGES_TABLE')); 65 65 $template->assign('add_pages', $ec_lists['add_pages']); 66 66 -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4333 r4342 183 183 function build_ec_addp() { 184 184 global $ec_lists; 185 if ( EC_AP_OK) {185 if (defined('ADD_PAGES_TABLE')) { 186 186 $res = pwg_query("SELECT `id`, `title` FROM `".ADD_PAGES_TABLE."`"); 187 187 while ($r = mysql_fetch_assoc($res)) { … … 289 289 case 2: // Additional Page 290 290 if ( 291 EC_AP_OKand (291 defined('ADD_PAGES_TABLE') and ( 292 292 is_in($ec_entry['action'], 'ec_ok') or 293 293 $ec_entry['action'] == 'ec_nok' -
extensions/event_cats/main.inc.php
r4338 r4342 55 55 'ROOT_URL', 56 56 get_absolute_root_url() 57 );58 define(59 'EC_AP_OK', // whether Additional Pages is installed and activated60 (mysql_num_rows(pwg_query("61 SELECT *62 FROM `".PLUGINS_TABLE."`63 WHERE `id` = 'AdditionalPages'64 AND `state` = 'active';65 ")) != 0)66 57 ); 67 58
Note: See TracChangeset
for help on using the changeset viewer.