BUG Fix incorrect assets created when ASSETS_PATH !== BASE_PATH . '/assets'

This commit is contained in:
Damian Mooyman 2018-02-26 13:12:08 +13:00
parent 7fe8da3222
commit b27102f810
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ if (!defined('BASE_PATH')) {
ini_set('display_errors', 1);
// Asset folder
if (!file_exists(BASE_PATH . '/assets')) {
mkdir(BASE_PATH . '/assets', 02775);
if (!file_exists(ASSETS_PATH)) {
mkdir(ASSETS_PATH, 02775);
}
if (empty($_SERVER['HTTP_HOST'])) {