[xoops-cvslog 3064] CVS update: xoops2jp/html/class/smarty/plugins

Back to archive index

Minahito minah****@users*****
2006年 5月 17日 (水) 14:30:32 JST


Index: xoops2jp/html/class/smarty/plugins/resource.db.php
diff -u xoops2jp/html/class/smarty/plugins/resource.db.php:1.1.8.1 xoops2jp/html/class/smarty/plugins/resource.db.php:1.1.8.2
--- xoops2jp/html/class/smarty/plugins/resource.db.php:1.1.8.1	Sun Apr  9 10:24:03 2006
+++ xoops2jp/html/class/smarty/plugins/resource.db.php	Wed May 17 14:30:31 2006
@@ -32,6 +32,9 @@
     $tpl_name = smarty_resource_db_systemTpl($tpl_name);
     $tplfile_handler =& xoops_gethandler('tplfile');
 	$tplobj =& $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], null, null, null, $tpl_name, true);
+	if (count($tplobj) == 0 && $GLOBALS['xoopsConfig']['template_set'] != "default") {
+		$tplobj =& $tplfile_handler->find('default', null, null, null, $tpl_name, true);
+	}
 	if (count($tplobj) > 0) {
 		if (false != $smarty->xoops_canUpdateFromFile()) {
 			$conf_theme = isset($GLOBALS['xoopsConfig']['theme_set']) ? $GLOBALS['xoopsConfig']['theme_set'] : 'default';
@@ -88,6 +91,9 @@
     $tpl_name = smarty_resource_db_systemTpl($tpl_name);
     $tplfile_handler =& xoops_gethandler('tplfile');
     $tplobj =& $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], null, null, null, $tpl_name, false);
+	if (count($tplobj) == 0 && $GLOBALS['xoopsConfig']['template_set'] != "default") {
+		$tplobj =& $tplfile_handler->find('default', null, null, null, $tpl_name, true);
+	}
 	if (count($tplobj) > 0) {
 		if (false != $smarty->xoops_canUpdateFromFile()) {
 			$conf_theme = isset($GLOBALS['xoopsConfig']['theme_set']) ? $GLOBALS['xoopsConfig']['theme_set'] : 'default';


xoops-cvslog メーリングリストの案内
Back to archive index