update to dotclear 2.24 (thx @gibus)
This commit is contained in:
parent
0d229b8fca
commit
82308cce06
21
_define.php
21
_define.php
@ -15,10 +15,19 @@ if (!defined('DC_RC_PATH')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->registerModule(
|
$this->registerModule(
|
||||||
/* Name */ 'Clean URLs',
|
'Clean URLs',
|
||||||
/* Description */ 'Removes diacritics and punctuation from URLs',
|
'Removes diacritics and punctuation from URLs',
|
||||||
/* Author */ 'Pierre Rudloff',
|
'Pierre Rudloff and contributors',
|
||||||
/* Version */ '0.1.1',
|
'1.1.1',
|
||||||
/* Permissions */ 'usage,contentadmin'
|
[
|
||||||
|
'requires' => [['core', '2.24']],
|
||||||
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
|
dcAuth::PERMISSION_USAGE,
|
||||||
|
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||||
|
]),
|
||||||
|
'type' => 'plugin',
|
||||||
|
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
||||||
|
'details' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
||||||
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
|
||||||
|
]
|
||||||
);
|
);
|
||||||
?>
|
|
||||||
|
@ -14,10 +14,6 @@ if (!defined('DC_RC_PATH')) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
global $__autoload;
|
Clearbricks::lib()->autoload(['CleanURLs' => __DIR__ . '/CleanURLs.php']);
|
||||||
$__autoload['CleanURLs'] = dirname(__FILE__).'/CleanURLs.php';
|
|
||||||
|
|
||||||
$core->addBehavior('coreBeforePostCreate', array('CleanURLs', 'clean'));
|
dcCore::app()->addBehavior('coreBeforePostCreate', ['CleanURLs', 'clean']);
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user