mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[enh] HTTP GET theme select
This commit is contained in:
		
							parent
							
								
									f825752145
								
							
						
					
					
						commit
						22a3cf7ac7
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -113,7 +113,9 @@ def get_current_theme_name(override=None): | |||
| 
 | ||||
|     if override and override in themes: | ||||
|         return override | ||||
|     theme_name = request.cookies.get('theme', default_theme) | ||||
|     theme_name = request.args.get('theme', | ||||
|                                   request.cookies.get('theme', | ||||
|                                                       default_theme)) | ||||
|     if theme_name not in themes: | ||||
|         theme_name = default_theme | ||||
|     return theme_name | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber