cleanURLs/_prepend.php

24 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;
}
global $__autoload;
$__autoload['CleanURLs'] = dirname(__FILE__).'/CleanURLs.php';
$core->addBehavior('coreBeforePostCreate', array('CleanURLs', 'clean'));
?>