Changeset 16855 for branches


Ignore:
Timestamp:
2007/12/02 13:24:22 (15 years ago)
Author:
adachi
Message:

テンプレートパス修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/upgrade/LC_Page_Upgrade_ProductsList.php

    r16845 r16855  
    129129            $objView = new SC_AdminView(); 
    130130            $objView->assign('arrProducts', $arrProducts); 
    131             //print_r($arrProducts); 
     131 
     132            $template = 'admin/ownersstore/products_list.tpl'; 
     133 
     134            if (!$objView->_smarty->template_exists($template)) { 
     135                $objLog->log('* template not exist, use default template'); 
     136                $objLog->log($objView->_smarty->template_dir); 
     137 
     138                $template = DATA_PATH . 'Smarty/templates/default/' . $template; 
     139            } 
     140 
    132141            $html = $objView->fetch('ownersstore/products_list.tpl'); 
    133  
    134142            $objJson->setSuccess(array(), $html); 
    135143            $objJson->display(); 
Note: See TracChangeset for help on using the changeset viewer.