cleanURLs/_prepend.php

20 lines
479 B
PHP
Raw Normal View History

2023-01-11 20:00:01 +00:00
<?php
/**
* Plugin initialisation
*
* PHP Version 5
*
* @category Plugin
* @package CleanURLs
* @author Pierre Rudloff <contact@rudloff.pro>
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License
* @link http://rudloff.pro
* */
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']);