Theme selector: fixed disabled themes being displayed
authorDan
Sun, 31 May 2009 23:26:24 -0400
changeset 1017 d0d3da40c391
parent 1016 6d32d80b2192
child 1018 3e3118285700
Theme selector: fixed disabled themes being displayed
ajax.php
--- a/ajax.php	Sun May 31 23:26:05 2009 -0400
+++ b/ajax.php	Sun May 31 23:26:24 2009 -0400
@@ -559,6 +559,9 @@
       $return = array();
       foreach ( $template->theme_list as $theme )
       {
+        if ( $theme['enabled'] != 1 )
+          continue;
+        
         $return[] = array(
             'theme_name' => $theme['theme_name'],
             'theme_id' => $theme['theme_id'],