Ignore:
Timestamp:
2012/05/10 17:57:04 (14 years ago)
Author:
adachi
Message:

#1797 #1798 メールテンプレートでfilterが動作するように修正

File:
1 edited

Legend:

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

    r21765 r21820  
    7272            $this->_smarty->force_compile = false; 
    7373        } 
     74        // 各filterをセットします. 
     75        $this->registFilter(); 
    7476    } 
    7577 
     
    100102            } 
    101103        } 
    102         // 各filterをセットします. 
    103         $this->registFilter(); 
    104104        $res =  $this->_smarty->fetch($template); 
    105105        if (ADMIN_MODE == '1') { 
     
    136136     */ 
    137137    function prefilter_transform($source, &$smarty) { 
    138         // フックポイントを実行. 
    139         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 
    140         $objPlugin->doAction('prefilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 
     138        if (!is_null($this->objPage)) { 
     139            // フックポイントを実行. 
     140            $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 
     141            $objPlugin->doAction('prefilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 
     142        } 
    141143        return $source; 
    142144    } 
     
    149151     */ 
    150152    function outputfilter_transform($source, &$smarty) { 
    151         // フックポイントを実行. 
    152         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 
    153         $objPlugin->doAction('outputfilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 
     153        if (!is_null($this->objPage)) { 
     154            // フックポイントを実行. 
     155            $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 
     156            $objPlugin->doAction('outputfilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 
     157        } 
    154158        return $source; 
    155159    } 
Note: See TracChangeset for help on using the changeset viewer.