From b406e24e3e3a1d78cc50593f5578313e2e286cc9 Mon Sep 17 00:00:00 2001 From: BJRambo Date: Mon, 21 Mar 2016 12:38:32 +0900 Subject: [PATCH] use loadfile method. --- modules/ncenterlite/ncenterlite.controller.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/ncenterlite/ncenterlite.controller.php b/modules/ncenterlite/ncenterlite.controller.php index 5935ee658..553b39088 100644 --- a/modules/ncenterlite/ncenterlite.controller.php +++ b/modules/ncenterlite/ncenterlite.controller.php @@ -738,11 +738,9 @@ class ncenterliteController extends ncenterlite function _addFile() { - $oModuleModel = getModel('module'); - $module_info = $oModuleModel->getModuleInfoXml('ncenterlite'); if(file_exists(FileHandler::getRealPath($this->template_path . 'ncenterlite.css'))) { - Context::addCssFile($this->template_path . 'ncenterlite.css', true, 'all', '', 100); + Context::loadFile(array($this->template_path . 'ncenterlite.css', '', '', 100), true); } $oNcenterliteModel = getModel('ncenterlite'); @@ -751,19 +749,19 @@ class ncenterliteController extends ncenterlite { if($config->colorset && file_exists(FileHandler::getRealPath($this->template_path . 'ncenterlite.' . $config->colorset . '.css'))) { - Context::addCssFile($this->template_path . 'ncenterlite.' . $config->colorset . '.css', true, 'all', '', 100); + Context::loadFile(array($this->template_path . 'ncenterlite.' . $config->colorset . '.css', '', '', 100), true); } } elseif(Mobile::isFromMobilePhone()) { if($config->mcolorset && file_exists(FileHandler::getRealPath($this->template_path . 'ncenterlite.' . $config->mcolorset . '.css'))) { - Context::addCssFile($this->template_path . 'ncenterlite.' . $config->mcolorset . '.css', true, 'all', '', 100); + Context::loadFile(array($this->template_path . 'ncenterlite.' . $config->mcolorset . '.css', '', '', 100), true); } Context::loadFile(array('./common/js/jquery.min.js', 'head', '', -100000), true); Context::loadFile(array('./common/js/xe.min.js', 'head', '', -100000), true); - Context::addCssFile($this->template_path . 'ncenterlite.mobile.css', true, 'all', '', 100); + Context::loadFile(array($this->template_path . 'ncenterlite.mobile.css', '', '', 100), true); } if($config->zindex) {