2023-01-11 20:00:01 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2023-01-11 20:16:35 +00:00
|
|
|
* @brief cleanURLs, a plugin for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
|
|
|
*
|
|
|
|
* @author Pierre Rudloff and contributors
|
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
2023-04-23 12:57:00 +00:00
|
|
|
* @copyright GPL-3.0 https://www.gnu.org/licenses/gpl-2.0.html
|
2023-01-11 20:16:35 +00:00
|
|
|
*/
|
2023-08-06 17:24:48 +00:00
|
|
|
if (!defined('DC_RC_PATH')) {
|
2023-01-11 20:00:01 +00:00
|
|
|
return;
|
|
|
|
}
|
2023-01-11 20:05:12 +00:00
|
|
|
|
2023-10-07 20:18:57 +00:00
|
|
|
use Dotclear\App;
|
|
|
|
|
2023-01-11 20:00:01 +00:00
|
|
|
$this->registerModule(
|
2023-01-11 20:05:12 +00:00
|
|
|
'Clean URLs',
|
|
|
|
'Removes diacritics and punctuation from URLs',
|
|
|
|
'Pierre Rudloff and contributors',
|
2023-10-07 20:18:57 +00:00
|
|
|
'1.6',
|
2023-01-11 20:05:12 +00:00
|
|
|
[
|
2023-10-07 20:18:57 +00:00
|
|
|
'requires' => [['core', '2.28']],
|
|
|
|
'permissions' => App::auth()->makePermissions([
|
|
|
|
App::auth()::PERMISSION_USAGE,
|
|
|
|
App::auth()::PERMISSION_CONTENT_ADMIN,
|
2023-01-11 20:05:12 +00:00
|
|
|
]),
|
2023-03-10 20:20:51 +00:00
|
|
|
'type' => 'plugin',
|
2023-08-06 17:24:48 +00:00
|
|
|
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
|
|
|
|
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
|
|
|
|
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
|
2023-01-11 20:05:12 +00:00
|
|
|
]
|
2023-01-11 20:16:35 +00:00
|
|
|
);
|