modif pour require
This commit is contained in:
parent
13d59a0c91
commit
a5a9c6e047
4 changed files with 5 additions and 6 deletions
|
@ -13,4 +13,4 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
|||
return;
|
||||
}
|
||||
|
||||
require_once '_widgets.php';
|
||||
require_once __DIR__.'/_widgets.php';
|
||||
|
|
|
@ -12,13 +12,11 @@
|
|||
if (!defined('DC_RC_PATH')) {
|
||||
return;
|
||||
}
|
||||
|
||||
require_once 'ConstCategoriesPage.php';
|
||||
$this->registerModule(
|
||||
/* Name */ 'Categories Page',
|
||||
/* Description*/ 'Add a category list page / Ajoute une page listant les catégories',
|
||||
/* Author */ 'Pierre Van Glabeke, Bernard Le Roux',
|
||||
/* Version */ ConstCategoriesPage::VERSION,
|
||||
/* Version */ '0.1',
|
||||
/* Properties */
|
||||
array(
|
||||
'permissions' => 'admin',
|
||||
|
|
|
@ -20,7 +20,7 @@ class publicCategoriesPage {
|
|||
public static function main() {
|
||||
|
||||
$core = $GLOBALS['core'];
|
||||
require_once '_widgets.php';
|
||||
require_once __DIR__.'/_widgets.php';
|
||||
|
||||
// Adds news Categories' templates tags :
|
||||
$tpl = $core->tpl;
|
||||
|
|
|
@ -21,7 +21,8 @@ class widgetsCategoriesPage {
|
|||
* initialisation du context widget
|
||||
*/
|
||||
public static function main() {
|
||||
require_once 'ConstCategoriesPage.php';
|
||||
require_once __DIR__.'/ConstCategoriesPage.php';
|
||||
|
||||
$core = $GLOBALS['core'];
|
||||
|
||||
$core->addBehavior('initWidgets', array('widgetsCategoriesPage', 'initWidgets'));
|
||||
|
|
Loading…
Reference in a new issue