Ignore:
Timestamp:
Jan 28, 2011, 8:56:39 AM (13 years ago)
Author:
LucMorizur
Message:

Fix bug:2135

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r8061 r8956  
    3636// +-----------------------------------------------------------------------+
    3737
    38 // Keeps file coded in UTF-8 without BOM: é
     38// Keeps file coded in UTF-8 without BOM : é
    3939
    4040if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    213213    SET `arg2` = $c
    214214    WHERE `arg1` = 3
    215       AND `code` IS NULL
    216215    LIMIT 1 ;
    217216  " : "
     
    238237    SET `arg2` = $c
    239238    WHERE `arg1` = 3
    240       AND `code` IS NULL
    241239    LIMIT 1 ;
    242240  " : "
     
    381379/*
    382380print '<pre>';
    383 //print_r('ROOT_URL : '.ROOT_URL.'<br>EVNTCATS_PATH : '.EVNTCATS_PATH);
    384 print('ROOT_URL + ... : '.preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches));
    385 print('<br>');
     381//print_r('EC_ROOT_URL : '.EC_ROOT_URL.'<br>EVNTCATS_PATH : '.EVNTCATS_PATH);
     382print('EC_ROOT_URL + ... : '.preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches));
     383print('<br />');
    386384print_r($matches);
    387385print '</pre>';
    388386*/
    389387
    390 $template->assign(array(
    391  'HeaderIncTPL'        =>
    392   realpath('plugins/event_cats/admin/template/header.inc.tpl'),
    393  'SmartFieldsetIncTPL' =>
    394   realpath('plugins/event_cats/admin/template/smart_fieldsets.inc.tpl'),
    395  'FooterIncTPL'        =>
    396   realpath('plugins/event_cats/admin/template/footer.inc.tpl'),
    397 ));
     388$template->assign(
     389 'HeaderIncTPL', realpath('plugins/event_cats/admin/template/header.inc.tpl')
     390);
     391
     392$template->assign(
     393 'FooterIncTPL', realpath('plugins/event_cats/admin/template/footer.inc.tpl')
     394);
    398395
    399396$template->assign(
     
    408405
    409406$template->assign('EVNTCATS_PATH', EVNTCATS_PATH);
    410 $template->assign('RACINE_URL', ROOT_URL);
     407$template->assign('RACINE_URL', EC_ROOT_URL);
    411408$template->assign('U_HELP', get_root_url().'popuphelp.php?page=help');
    412409
    413 if (isset($conf['ec_debug1']) and $conf['ec_debug1'])
    414  $template->assign('ec_debug1', array(
     410if (isset($conf['ec_debug1'])) $template->assign('ec_debug1', array(
    415411  'POST'      => str_from_var($_POST),
    416412  'ec_debug'  => (isset($ec_debug)) ? str_from_var($ec_debug) : '(unset)',
Note: See TracChangeset for help on using the changeset viewer.