Ignore:
Timestamp:
2012/01/23 04:49:37 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Plugin.php

    r21416 r21420  
    4343     */ 
    4444    function load() { 
    45          
     45 
    4646        if (!defined('CONFIG_REALFILE') || !file_exists(CONFIG_REALFILE)) return; // インストール前 
    4747        if (SC_Utils_Ex::sfIsInstallFunction()) return; // インストール中 
     
    101101            ksort($this->arrRegistedPluginActions[$hook_point]); 
    102102            foreach ($this->arrRegistedPluginActions[$hook_point] as $priority => $arrFuncs) { 
    103                  
     103 
    104104                foreach ($arrFuncs as $func) { 
    105105                    if (!is_null($func['function'])) { 
     
    302302            } 
    303303            closedir($handle); 
    304              
     304 
    305305            // ディレクトリを削除 
    306306            if ($del_myself) @rmdir($path); 
     
    319319    function getPluginTemplateCachePath($objPage) { 
    320320        // main_template の差し替え 
    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 { 
     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 { 
    326326            // フロントページ or 管理画面を判定 
    327             $dir = ($objPage instanceof LC_Page_Admin) ? 'admin/' : TEMPLATE_NAME . '/'; 
    328             $default_tpl_mainpage = $objPage->tpl_mainpage; 
    329         } 
     327        $dir = ($objPage instanceof LC_Page_Admin) ? 'admin/' : TEMPLATE_NAME . '/'; 
     328    $default_tpl_mainpage = $objPage->tpl_mainpage; 
     329    } 
    330330        return PLUGIN_TMPL_CACHE_REALDIR . $dir . $default_tpl_mainpage; 
    331331    } 
Note: See TracChangeset for help on using the changeset viewer.