first commit
This commit is contained in:
30
administrator/components/com_jchoptimize/autoload.php
Normal file
30
administrator/components/com_jchoptimize/autoload.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* JCH Optimize - Performs several front-end optimizations for fast downloads
|
||||
*
|
||||
* @package jchoptimize/joomla-platform
|
||||
* @author Samuel Marshall <samuel@jch-optimize.net>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall / JCH Optimize
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
if (! defined('_JCH_EXEC')) {
|
||||
define('_JCH_EXEC', 1);
|
||||
}
|
||||
|
||||
if (! defined('_JCH_BASE_DIR')) {
|
||||
define('_JCH_BASE_DIR', __DIR__);
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/version.php';
|
||||
|
||||
if (JCH_DEVELOP) {
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
} else {
|
||||
require_once __DIR__ . '/lib/vendor/scoper-autoload.php';
|
||||
}
|
||||
Reference in New Issue
Block a user