cleanURLs/_prepend.php

20 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;
}
Clearbricks::lib()->autoload(['CleanURLs' => __DIR__ . '/inc/class.cleanurls.php']);
dcCore::app()->addBehavior('coreBeforePostCreate', ['CleanURLs', 'clean']);