Ignore:
Timestamp:
Nov 22, 2009, 6:34:35 PM (15 years ago)
Author:
LucMorizur
Message:

[Event Cats] Remove define of EC_AP_OK with a mysql query in main.inc.php

(See http://code.piwigo.org/issues/show/1249 )

Location:
extensions/event_cats/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/autolog_entries.inc.php

    r4336 r4342  
    113113        case 2: // Additional Page
    114114          $url_end = ($ec_entry['forced'] == 'true') ? '' : '&ap='.$arg2;
    115           $dspl = (EC_AP_OK) ? sprintf(
     115          $dspl = (defined('ADD_PAGES_TABLE')) ? sprintf(
    116116            l10n('ec_dspl_ok_ap'),
    117117            $arg2, $ec_lists['add_pages'][$arg2_int]
     
    126126      }
    127127      else {
    128         $dspl = (EC_AP_OK) ? sprintf(
     128        $dspl = (defined('ADD_PAGES_TABLE')) ? sprintf(
    129129            l10n('ec_dspl_ok_ap'),
    130130            $arg2, $ec_lists['add_pages'][$arg2_int]
     
    220220}
    221221
    222 $template->assign('ec_ap_ok',  EC_AP_OK);
     222$template->assign('ec_ap_ok',  defined('ADD_PAGES_TABLE'));
    223223$template->assign('ec_ap_ok2', (count($ec_lists['add_pages']) > 0));
    224224$template->assign('code_list', $code_list);
  • extensions/event_cats/admin/autolog_new.inc.php

    r4336 r4342  
    103103"))) == 0));
    104104$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'));
    106106$template->assign('ec_lists',               $ec_lists);
    107107$template->assign('ec_default_entry',       $ec_default_entry);
  • extensions/event_cats/admin/config.inc.php

    r4336 r4342  
    6262load_language('plugin.lang', EVNTCATS_PATH);
    6363
    64 $template->assign('ec_ap_ok', EC_AP_OK);
     64$template->assign('ec_ap_ok', defined('ADD_PAGES_TABLE'));
    6565$template->assign('add_pages', $ec_lists['add_pages']);
    6666
Note: See TracChangeset for help on using the changeset viewer.