Changeset 1253


Ignore:
Timestamp:
2007/01/22 10:42:29 (17 years ago)
Author:
kakinaka
Message:
 
Location:
temp/test-xoops.ec-cube.net/html
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/footer.php

    r1252 r1253  
    4747        // RMV-NOTIFY 
    4848        include_once XOOPS_ROOT_PATH . '/include/notification_select.php'; 
    49         if (isset($xoopsOption['template_main'])) { 
     49         
     50        if(isset($xoopsOption['template_main_path'])){ 
     51            $xoopsOption['template_main'] = $xoopsOption['template_main_path']; 
    5052            if (isset($xoopsCachedTemplateId)) { 
    5153                $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'], $xoopsCachedTemplateId)); 
     
    5355                $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'])); 
    5456            } 
    55         } else { 
    56             if (isset($xoopsCachedTemplate)) { 
    57                 $xoopsTpl->assign('dummy_content', ob_get_contents()); 
    58                 $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch($xoopsCachedTemplate, $xoopsCachedTemplateId)); 
    59             } else { 
    60                 $xoopsTpl->assign('xoops_contents', ob_get_contents()); 
    61             } 
    62             ob_end_clean(); 
    63         } 
     57        }else{ 
     58            if (isset($xoopsOption['template_main'])) { 
     59                if (isset($xoopsCachedTemplateId)) { 
     60                    $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'], $xoopsCachedTemplateId)); 
     61                } else { 
     62                    $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'])); 
     63                } 
     64            } else { 
     65                if (isset($xoopsCachedTemplate)) { 
     66                    $xoopsTpl->assign('dummy_content', ob_get_contents()); 
     67                    $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch($xoopsCachedTemplate, $xoopsCachedTemplateId)); 
     68                } else { 
     69                    $xoopsTpl->assign('xoops_contents', ob_get_contents()); 
     70                } 
     71                ob_end_clean(); 
     72            } 
     73        } 
     74         
    6475        if (!headers_sent()) { 
    6576            header('Content-Type:text/html; charset='._CHARSET); 
  • temp/test-xoops.ec-cube.net/html/modules/newbb/response.php

    r1246 r1253  
    4848// this page uses smarty template 
    4949// this must be set before including main header.php 
    50 $xoopsOption['template_main'] = 'newbb_response.html'; 
     50$xoopsOption['template_main_path'] = 'newbb_response.html'; 
    5151include XOOPS_ROOT_PATH."/header.php"; 
    5252$can_post = 0; 
Note: See TracChangeset for help on using the changeset viewer.