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
|
|
|
|
* @copyright GPL-3.0 https://www.gnu.org/licenses/gpl-3.0.html
|
|
|
|
*/
|
2023-01-11 20:00:01 +00:00
|
|
|
if (!defined('DC_RC_PATH')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-01-11 20:09:52 +00:00
|
|
|
Clearbricks::lib()->autoload(['CleanURLs' => __DIR__ . '/inc/class.cleanurls.php']);
|
2023-01-11 20:00:01 +00:00
|
|
|
|
2023-01-11 20:05:12 +00:00
|
|
|
dcCore::app()->addBehavior('coreBeforePostCreate', ['CleanURLs', 'clean']);
|