cleanURLs/_define.php

34 lines
1019 B
PHP
Raw Normal View History

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-04-23 12:57:00 +00:00
if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) {
2023-01-11 20:00:01 +00:00
return;
}
2023-01-11 20:05:12 +00:00
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-04-26 18:48:54 +00:00
'1.4.1',
2023-01-11 20:05:12 +00:00
[
2023-04-23 12:57:00 +00:00
'requires' => [['core', '2.26']],
2023-01-11 20:05:12 +00:00
'permissions' => dcCore::app()->auth->makePermissions([
2023-04-23 12:57:00 +00:00
dcCore::app()->auth::PERMISSION_USAGE,
dcCore::app()->auth::PERMISSION_CONTENT_ADMIN,
2023-01-11 20:05:12 +00:00
]),
2023-03-10 20:20:51 +00:00
'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',
2023-01-11 20:05:12 +00:00
]
2023-01-11 20:16:35 +00:00
);