[xoops-cvslog 3541] CVS update: xoops2jp/html/modules/legacyRender/blocks

Back to archive index

Minahito minah****@users*****
2006年 7月 11日 (火) 14:09:54 JST


Index: xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php
diff -u xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php:1.1.2.1 xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php:1.1.2.2
--- xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php:1.1.2.1	Fri Mar 24 22:05:46 2006
+++ xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php	Tue Jul 11 14:09:54 2006
@@ -1,11 +1,16 @@
 <?php
+
 function b_legacyRender_themes_show($options)
 {
     global $xoopsConfig;
     $theme_options = array();
-    foreach ($xoopsConfig['theme_set_allowed'] as $theme) {
-        $theme_option['name'] = $theme;
-        if ($theme == $xoopsConfig['theme_set']) {
+	
+	$handler =& xoops_getmodulehandler('theme', 'legacyRender');
+	$themeArr =& $handler->getObjects(new Criteria('enable_select', 1));
+	
+    foreach ($themeArr as $theme) {
+        $theme_option['name'] = $theme->getShow('name');
+        if ($theme->get('name') == $xoopsConfig['theme_set']) {
             $theme_option['selected'] = 'selected="selected"';
         } else {
             $theme_option['selected'] = '';
@@ -13,7 +18,7 @@
         $theme_options[] = $theme_option;
     }
     $block = array();
-    $block['count'] = count($xoopsConfig['theme_set_allowed']);
+    $block['count'] = count($themeArr);
     $block['mode'] = $options[0];
     $block['width'] = $options[1];
     $block['theme_options'] = $theme_options;


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