update to dotclear 2.24 (thx @gibus)

This commit is contained in:
Jean-Christian Paul Denis 2023-01-11 21:05:12 +01:00
parent 0d229b8fca
commit 82308cce06
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 19 additions and 14 deletions

View File

@ -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',
]
); );
?>

View File

@ -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']);
?>