Changeset 18609 for tmp/version-2_5-test/data/class/SC_View.php
- Timestamp:
- 2010/03/11 10:35:11 (16 years ago)
- File:
-
- 1 edited
-
tmp/version-2_5-test/data/class/SC_View.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/data/class/SC_View.php
r16741 r18609 44 44 $this->_smarty->register_modifier("sfGetErrorColor", array("SC_Utils_Ex", "sfGetErrorColor")); 45 45 $this->_smarty->register_modifier("sfTrim", array("SC_Utils_Ex", "sfTrim")); 46 $this->_smarty->register_modifier("sfPreTax", array("SC_ Utils_Ex", "sfPreTax"));46 $this->_smarty->register_modifier("sfPreTax", array("SC_Helper_DB_Ex", "sfPreTax")); 47 47 $this->_smarty->register_modifier("sfPrePoint", array("SC_Utils_Ex", "sfPrePoint")); 48 48 $this->_smarty->register_modifier("sfGetChecked",array("SC_Utils_Ex", "sfGetChecked")); … … 61 61 // $this->_smarty->register_modifier("sfPrintAffTag", array("SC_Utils_Ex", "sfPrintAffTag")); 62 62 $this->_smarty->register_modifier("sfGetCategoryId", array("SC_Utils_Ex", "sfGetCategoryId")); 63 $this->_smarty->register_modifier("sfNoImageMainList", array("SC_Utils_Ex", "sfNoImageMainList")); 63 64 $this->_smarty->register_function("sfIsHTTPS", array("SC_Utils_Ex", "sfIsHTTPS")); 64 65 $this->_smarty->register_function("sfSetErrorStyle", array("SC_Utils_Ex", "sfSetErrorStyle")); … … 185 186 186 187 class SC_SiteView extends SC_View{ 187 function SC_SiteView($ cart= true) {188 function SC_SiteView($setPrevURL = true) { 188 189 parent::SC_View(); 189 190 … … 195 196 SC_Utils_Ex::sfDomainSessionStart(); 196 197 197 if($cart){ 198 $include_dir = realpath(dirname( __FILE__)); 199 require_once($include_dir . "/SC_CartSession.php"); 198 if ($setPrevURL) { 200 199 $objCartSess = new SC_CartSession(); 201 200 $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); … … 221 220 222 221 class SC_MobileView extends SC_SiteView { 223 function SC_MobileView( ) {224 parent::SC_SiteView( );222 function SC_MobileView($setPrevURL = true) { 223 parent::SC_SiteView($setPrevURL); 225 224 $this->_smarty->template_dir = MOBILE_TEMPLATE_DIR; 226 225 $this->_smarty->compile_dir = MOBILE_COMPILE_DIR;
Note: See TracChangeset
for help on using the changeset viewer.
