[xoops-cvslog 5757] CVS update: xoops2jp/html/modules/legacyRender/admin/class

Back to archive index

Minahito minah****@users*****
2006年 11月 10日 (金) 18:11:40 JST


Index: xoops2jp/html/modules/legacyRender/admin/class/LegacyTheme.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/class/LegacyTheme.class.php:1.1.2.4 xoops2jp/html/modules/legacyRender/admin/class/LegacyTheme.class.php:1.1.2.4.2.1
--- xoops2jp/html/modules/legacyRender/admin/class/LegacyTheme.class.php:1.1.2.4	Tue Mar 28 22:30:48 2006
+++ xoops2jp/html/modules/legacyRender/admin/class/LegacyTheme.class.php	Fri Nov 10 18:11:40 2006
@@ -42,11 +42,16 @@
 				}
 
 				$themeDir=XOOPS_THEME_PATH."/".$dir;
-				if(is_dir($themeDir)) {
-					$mnfFile=$themeDir."/package.ini.php";
-					if(file_exists($mnfFile)) {
-						$manifesto=parse_ini_file($mnfFile,true);
-						
+				if (is_dir($themeDir)) {
+					$manifesto = array();
+					if (file_exists($mnfFile = $themeDir . "/manifesto.ini.php")) {
+						$manifesto = parse_ini_file($mnfFile, true);
+					}
+					elseif (file_exists($mnfFile = $themeDir . "/package.ini.php")) {
+						$manifesto = parse_ini_file($mnfFile, true);
+					}
+					
+					if(count($manifesto) > 0) {
 						//
 						// If this system can use this theme, add this to list.
 						//


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