Changeset 8925 for extensions/cl_conflit


Ignore:
Timestamp:
Jan 26, 2011, 6:40:26 PM (14 years ago)
Author:
cljosse
Message:

[cl_conflit] admin compatibility with piwigo 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/cl_conflit/admin/cl_conflit_admin.php

    r7905 r8925  
    2929   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'
    3030);
     31if (!defined('CONFLIT_PATH_ABS'))
     32define('CONFLIT_PATH_ABS',dirname(__FILE__).'/');
    3133// +-----------------------------------------------------------------------+
    3234// | Check Access and exit when user status is not ok                      |
     
    106108 include (CONFLIT_PATH."include/affiche.php");           
    107109//================================================================================
     110                $template->assign(
     111                                                array(
     112                        'CONFLIT_PATH' => CONFLIT_PATH,
     113                                                'CONFLIT_PATH_ABS' => CONFLIT_PATH_ABS 
     114                        ) );
     115
    108116$base_url = get_root_url().'admin_cl_conflit.php';
    109117switch ($page['tab'])
     
    112120
    113121    $template->set_filenames(array('plugin_admin_content' => realpath(CONFLIT_PATH . 'admin/template/admin.tpl')));
     122   
    114123    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    115124    break;
     
    119128 
    120129 $template->set_filenames(array( 'plugin_admin_content' => realpath(CONFLIT_PATH . 'template/picture.tpl' )));
     130 
    121131 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    122132 break;
Note: See TracChangeset for help on using the changeset viewer.