cleanURLs/_prepend.php

24 lines
479 B
PHP

<?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'));
?>