From 183c0cf026fbc40fdca542775cce2d9bce638d15 Mon Sep 17 00:00:00 2001 From: Khanh Le Date: Wed, 11 Jun 2014 13:52:16 +0700 Subject: [PATCH] Fix compile Less to Css issue Fix #318 --- source/plg_system_t3/includes/core/t3.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/source/plg_system_t3/includes/core/t3.php b/source/plg_system_t3/includes/core/t3.php index f86a901462..4dccea21c9 100644 --- a/source/plg_system_t3/includes/core/t3.php +++ b/source/plg_system_t3/includes/core/t3.php @@ -105,9 +105,9 @@ public static function init ($xml) { define ('T3_TEMPLATE_PATH', JPATH_ROOT . '/templates/' . T3_TEMPLATE); define ('T3_TEMPLATE_REL', 'templates/' . T3_TEMPLATE); - define ('T3_CUSTOM_URL', T3_TEMPLATE_URL . '/' . T3_CUSTOM_DIR); - define ('T3_CUSTOM_PATH', T3_TEMPLATE_PATH . '/' . T3_CUSTOM_DIR); - define ('T3_CUSTOM_REL', T3_TEMPLATE_REL . '/' . T3_CUSTOM_DIR); + define ('T3_LOCAL_URL', T3_TEMPLATE_URL . '/' . T3_LOCAL_DIR); + define ('T3_LOCAL_PATH', T3_TEMPLATE_PATH . '/' . T3_LOCAL_DIR); + define ('T3_LOCAL_REL', T3_TEMPLATE_REL . '/' . T3_LOCAL_DIR); if ($input->getCmd('themer', 0)){ define ('T3_THEMER', 1); @@ -115,13 +115,15 @@ public static function init ($xml) { if (!$app->isAdmin()) { $params = $app->getTemplate(true)->params; - define ('T3_DEV_FOLDER', $params->get ('t3-assets', 't3-assets') . '/dev'); define ('T3_DEV_MODE', $params->get ('devmode', 0)); - if (!is_dir(JPATH_ROOT.'/'.T3_DEV_FOLDER)) { - jimport('joomla.filesystem.folder'); - JFolder::create(JPATH_ROOT.'/'.T3_DEV_FOLDER); - } + } else { + $params = self::getTemplate()->params; + define ('T3_DEV_FOLDER', $params->get ('t3-assets', 't3-assets') . '/dev'); + } + if (!is_dir(JPATH_ROOT.'/'.T3_DEV_FOLDER)) { + jimport('joomla.filesystem.folder'); + JFolder::create(JPATH_ROOT.'/'.T3_DEV_FOLDER); } if($input->getCmd('t3lock', '')){