ajax.php
changeset 1017 d0d3da40c391
parent 1005 b7c7f7e2e93b
child 1068 4bcefa85649c
equal deleted inserted replaced
1016:6d32d80b2192 1017:d0d3da40c391
   557       header('Content-type: application/json');
   557       header('Content-type: application/json');
   558       
   558       
   559       $return = array();
   559       $return = array();
   560       foreach ( $template->theme_list as $theme )
   560       foreach ( $template->theme_list as $theme )
   561       {
   561       {
       
   562         if ( $theme['enabled'] != 1 )
       
   563           continue;
       
   564         
   562         $return[] = array(
   565         $return[] = array(
   563             'theme_name' => $theme['theme_name'],
   566             'theme_name' => $theme['theme_name'],
   564             'theme_id' => $theme['theme_id'],
   567             'theme_id' => $theme['theme_id'],
   565             'have_thumb' => file_exists(ENANO_ROOT . "/themes/{$theme['theme_id']}/preview.png")
   568             'have_thumb' => file_exists(ENANO_ROOT . "/themes/{$theme['theme_id']}/preview.png")
   566           );
   569           );