XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 24, 2011, 12:38:02 PM (13 years ago)
Author:
toemon
Message:

class/template.phpとclass/-template.php の条件include化(ver3.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/xpress_templates_make.php

    r753 r778  
    7777                        // generate compiled file 
    7878                        include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ; 
    79                         include_once XOOPS_ROOT_PATH.'/class/template.php' ; 
    80                         include_once XOOPS_ROOT_PATH.'/class/-template.php' ; // xoops3 
     79                        if (file_exists(XOOPS_ROOT_PATH.'/class/template.php')){ 
     80                                include_once XOOPS_ROOT_PATH.'/class/template.php' ; 
     81                        } else if (file_exists(XOOPS_ROOT_PATH.'/class/-template.php')){ 
     82                                include_once XOOPS_ROOT_PATH.'/class/-template.php' ; // xoops3 
     83                        } 
    8184                        if( ! xoops_template_touch( $tplid ) ) { 
    8285                                $msg = '<span style="color:#ff0000;">ERROR: Failed compiling template <b>'.htmlspecialchars($file_name).'</b>.</span><br />'; 
Note: See TracChangeset for help on using the changeset viewer.