non-theme dir were listed as themes. now checking for the existance of $dir/themes.conf.php : old-style themes will be therefore IGNORED
This commit is contained in:
		
							parent
							
								
									3daa91a8a5
								
							
						
					
					
						commit
						846adeccf9
					
				| @ -94,6 +94,9 @@ | |||||||
| 				 | 				 | ||||||
| 				$f = $d . '/theme.conf.php'; | 				$f = $d . '/theme.conf.php'; | ||||||
| 				 | 				 | ||||||
|  | 				if (!file_exists($f)) | ||||||
|  | 					continue; | ||||||
|  | 				 | ||||||
| 				$theme = admin_theme_data($d . '/theme.conf.php', $thm, $this->defprev); | 				$theme = admin_theme_data($d . '/theme.conf.php', $thm, $this->defprev); | ||||||
| 				 | 				 | ||||||
| 				$info[] = $theme; | 				$info[] = $theme; | ||||||
|  | |||||||
| @ -9,12 +9,14 @@ | |||||||
| </div> | </div> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | {if $available_themes} | ||||||
|  | 
 | ||||||
| <div id="available-themes"> | <div id="available-themes"> | ||||||
| 
 | 
 | ||||||
| <h2>{$panelstrings.head2}</h2> | <h2>{$panelstrings.head2}</h2> | ||||||
| <p>{$panelstrings.descr}</p> | <p>{$panelstrings.descr}</p> | ||||||
| 
 | 
 | ||||||
| {if $available_themes} |  | ||||||
| 
 | 
 | ||||||
| <ul> | <ul> | ||||||
| {foreach from=$available_themes item=thm} | {foreach from=$available_themes item=thm} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 real_nowhereman
						real_nowhereman