Changeset 19938 for branches/version-2_5-dev/data/class/SC_View.php
- Timestamp:
- 2011/01/17 05:47:34 (15 years ago)
- File:
-
- 1 edited
-
branches/version-2_5-dev/data/class/SC_View.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_View.php
r19807 r19938 22 22 */ 23 23 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 グローバル変数として流用あり 25 require_once $viewDir . '../module/Smarty/libs/Smarty.class.php'; 27 26 28 27 class SC_View { … … 33 32 // コンストラクタ 34 33 function SC_View($siteinfo = true) { 35 global $ SC_VIEW_PHP_DIR;34 global $viewDir; 36 35 37 36 $this->_smarty = new Smarty; … … 52 51 $this->_smarty->register_modifier("sfRmDupSlash", array("SC_Utils_Ex", "sfRmDupSlash")); 53 52 $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"); 55 54 $this->_smarty->register_modifier("sf_mb_convert_encoding", array("SC_Utils_Ex", "sf_mb_convert_encoding")); 56 55 $this->_smarty->register_modifier("sfGetEnabled", array("SC_Utils_Ex", "sfGetEnabled")); … … 162 161 /* サイト初期設定 */ 163 162 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'; 167 166 168 167 $objDb = new SC_Helper_DB_Ex();
Note: See TracChangeset
for help on using the changeset viewer.
