cleanURLs/_prepend.php
2023-01-11 21:16:35 +01:00

20 lines
460 B
PHP

<?php
/**
* @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
*/
if (!defined('DC_RC_PATH')) {
return;
}
Clearbricks::lib()->autoload(['CleanURLs' => __DIR__ . '/inc/class.cleanurls.php']);
dcCore::app()->addBehavior('coreBeforePostCreate', ['CleanURLs', 'clean']);