- Timestamp:
- 2012/01/23 04:49:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_Plugin.php
r21416 r21420 43 43 */ 44 44 function load() { 45 45 46 46 if (!defined('CONFIG_REALFILE') || !file_exists(CONFIG_REALFILE)) return; // インストール前 47 47 if (SC_Utils_Ex::sfIsInstallFunction()) return; // インストール中 … … 101 101 ksort($this->arrRegistedPluginActions[$hook_point]); 102 102 foreach ($this->arrRegistedPluginActions[$hook_point] as $priority => $arrFuncs) { 103 103 104 104 foreach ($arrFuncs as $func) { 105 105 if (!is_null($func['function'])) { … … 302 302 } 303 303 closedir($handle); 304 304 305 305 // ディレクトリを削除 306 306 if ($del_myself) @rmdir($path); … … 319 319 function getPluginTemplateCachePath($objPage) { 320 320 // main_template の差し替え 321 322 323 324 325 321 if (strpos($objPage->tpl_mainpage, SMARTY_TEMPLATES_REALDIR) === 0) { 322 // フルパスで指定された 323 $dir = ''; 324 $default_tpl_mainpage = str_replace(SMARTY_TEMPLATES_REALDIR, '', $objPage->tpl_mainpage); 325 } else { 326 326 // フロントページ or 管理画面を判定 327 328 329 327 $dir = ($objPage instanceof LC_Page_Admin) ? 'admin/' : TEMPLATE_NAME . '/'; 328 $default_tpl_mainpage = $objPage->tpl_mainpage; 329 } 330 330 return PLUGIN_TMPL_CACHE_REALDIR . $dir . $default_tpl_mainpage; 331 331 }
Note: See TracChangeset
for help on using the changeset viewer.