modif pour require

This commit is contained in:
brol 2013-12-30 14:47:09 +01:00
parent 13d59a0c91
commit a5a9c6e047
4 changed files with 5 additions and 6 deletions

View file

@ -13,4 +13,4 @@ if (!defined('DC_CONTEXT_ADMIN')) {
return; return;
} }
require_once '_widgets.php'; require_once __DIR__.'/_widgets.php';

View file

@ -12,13 +12,11 @@
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return; return;
} }
require_once 'ConstCategoriesPage.php';
$this->registerModule( $this->registerModule(
/* Name */ 'Categories Page', /* Name */ 'Categories Page',
/* Description*/ 'Add a category list page / Ajoute une page listant les catégories', /* Description*/ 'Add a category list page / Ajoute une page listant les catégories',
/* Author */ 'Pierre Van Glabeke, Bernard Le Roux', /* Author */ 'Pierre Van Glabeke, Bernard Le Roux',
/* Version */ ConstCategoriesPage::VERSION, /* Version */ '0.1',
/* Properties */ /* Properties */
array( array(
'permissions' => 'admin', 'permissions' => 'admin',

View file

@ -20,7 +20,7 @@ class publicCategoriesPage {
public static function main() { public static function main() {
$core = $GLOBALS['core']; $core = $GLOBALS['core'];
require_once '_widgets.php'; require_once __DIR__.'/_widgets.php';
// Adds news Categories' templates tags : // Adds news Categories' templates tags :
$tpl = $core->tpl; $tpl = $core->tpl;

View file

@ -21,7 +21,8 @@ class widgetsCategoriesPage {
* initialisation du context widget * initialisation du context widget
*/ */
public static function main() { public static function main() {
require_once 'ConstCategoriesPage.php'; require_once __DIR__.'/ConstCategoriesPage.php';
$core = $GLOBALS['core']; $core = $GLOBALS['core'];
$core->addBehavior('initWidgets', array('widgetsCategoriesPage', 'initWidgets')); $core->addBehavior('initWidgets', array('widgetsCategoriesPage', 'initWidgets'));