Ignore:
Timestamp:
Nov 22, 2009, 6:34:35 PM (14 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 )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/evntcats_main_funcs.inc.php

    r4333 r4342  
    183183function build_ec_addp() {
    184184  global $ec_lists;
    185   if (EC_AP_OK) {
     185  if (defined('ADD_PAGES_TABLE')) {
    186186    $res = pwg_query("SELECT `id`, `title` FROM `".ADD_PAGES_TABLE."`");
    187187    while ($r = mysql_fetch_assoc($res)) {
     
    289289      case 2: // Additional Page
    290290        if (
    291           EC_AP_OK and (
     291          defined('ADD_PAGES_TABLE') and (
    292292            is_in($ec_entry['action'], 'ec_ok') or
    293293            $ec_entry['action'] == 'ec_nok'
Note: See TracChangeset for help on using the changeset viewer.