Ignore:
Timestamp:
2011/01/17 05:47:34 (15 years ago)
Author:
Seasoft
Message:

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

  • EC-CUBE標準規約に準拠した定数名とする。

#628(未使用処理・定義などの削除)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_View.php

    r19807 r19938  
    2222 */ 
    2323 
    24 $SC_VIEW_PHP_DIR = realpath(dirname(__FILE__)); 
    25 require_once($SC_VIEW_PHP_DIR . "/../module/Smarty/libs/Smarty.class.php"); 
    26 //require_once(CLASS_EX_REALDIR . "util_extends/SC_Utils_Ex.php"); 
     24$viewDir = realpath(dirname(__FILE__)) . '/'; // XXX グローバル変数として流用あり 
     25require_once $viewDir . '../module/Smarty/libs/Smarty.class.php'; 
    2726 
    2827class SC_View { 
     
    3332    // コンストラクタ 
    3433    function SC_View($siteinfo = true) { 
    35         global $SC_VIEW_PHP_DIR; 
     34        global $viewDir; 
    3635 
    3736        $this->_smarty = new Smarty; 
     
    5251        $this->_smarty->register_modifier("sfRmDupSlash", array("SC_Utils_Ex", "sfRmDupSlash")); 
    5352        $this->_smarty->register_modifier("sfCutString", array("SC_Utils_Ex", "sfCutString")); 
    54         $this->_smarty->plugins_dir=array("plugins", $SC_VIEW_PHP_DIR . "/../smarty_extends"); 
     53        $this->_smarty->plugins_dir=array("plugins", $viewDir . "../smarty_extends"); 
    5554        $this->_smarty->register_modifier("sf_mb_convert_encoding", array("SC_Utils_Ex", "sf_mb_convert_encoding")); 
    5655        $this->_smarty->register_modifier("sfGetEnabled", array("SC_Utils_Ex", "sfGetEnabled")); 
     
    162161    /* サイト初期設定 */ 
    163162    function initpath() { 
    164         global $SC_VIEW_PHP_DIR; 
    165  
    166         $array['tpl_mainnavi'] = $SC_VIEW_PHP_DIR . '/../Smarty/templates/frontparts/mainnavi.tpl'; 
     163        global $viewDir; 
     164 
     165        $array['tpl_mainnavi'] = $viewDir . '../Smarty/templates/frontparts/mainnavi.tpl'; 
    167166 
    168167        $objDb = new SC_Helper_DB_Ex(); 
Note: See TracChangeset for help on using the changeset viewer.