Ignore:
Timestamp:
May 22, 2010, 1:07:30 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Compatibility with Piwigo 2.1

File:
1 edited

Legend:

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

    r4885 r6269  
    380380print '<pre>';
    381381//print_r('ROOT_URL : '.ROOT_URL.'<br>EVNTCATS_PATH : '.EVNTCATS_PATH);
    382 print('ROOT_URL : '.ROOT_URL.'<br>EVNTCATS_PATH : '.EVNTCATS_PATH);
     382print('ROOT_URL + ... : '.preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches));
     383print('<br />');
     384print_r($matches);
    383385print '</pre>';
    384386*/
    385387
    386 $template->assign('ec_howto',
    387  ($ec_howto and (count($page['errors']) ==0 and count($page['infos']) == 0)));
    388 
    389 $template->assign('ec_help_banner_OK', (read_ec_conf('in_help_display') == '1'));
     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);
     395
     396$template->assign(
     397 'ec_howto',
     398 ($ec_howto and (count($page['errors']) == 0 and count($page['infos']) == 0))
     399);
     400
     401$template->assign(
     402 'ec_help_banner_OK',
     403 (read_ec_conf('in_help_display') == '1')
     404);
    390405
    391406$template->assign('EVNTCATS_PATH', EVNTCATS_PATH);
    392407$template->assign('RACINE_URL', ROOT_URL);
    393 $template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help');
     408$template->assign('U_HELP', get_root_url().'popuphelp.php?page=help');
    394409
    395410if (isset($conf['ec_debug1'])) $template->assign('ec_debug1', array(
Note: See TracChangeset for help on using the changeset viewer.