Changeset 850
- Timestamp:
- 09/17/07 18:26:25 (15 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/themes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/themes.php
r793 r850 14 14 public static function get_all() 15 15 { 16 if ( ! isset( self::$all_themes )) {16 if ( !isset( self::$all_themes ) ) { 17 17 $themes= glob( HABARI_PATH . '/user/themes/*', GLOB_ONLYDIR | GLOB_MARK ); 18 18 if( Site::is('multi') ) { … … 22 22 } 23 23 } 24 $themes= array_filter( $themes, create_function('$a', 'return file_exists($a . "/theme.xml");') ); 25 $themefiles= array_map('basename', $themes); 26 self::$all_themes= array_combine($themefiles, $themes); 24 27 } 25 $themes= array_filter( $themes, create_function('$a', 'return file_exists($a . "/theme.xml");') );26 $themefiles= array_map('basename', $themes);27 self::$all_themes= array_combine($themefiles, $themes);28 28 return self::$all_themes; 29 29 }
