mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-10-31 10:31:07 +03:00 
			
		
		
		
	Fix bug with locale changing
This commit is contained in:
		
							parent
							
								
									99cccc9d2f
								
							
						
					
					
						commit
						96efd0f194
					
				| @ -51,14 +51,14 @@ define('CURRENT_LOCALE', get_locale()); | |||||||
| 
 | 
 | ||||||
| function locale_exists($locale) | function locale_exists($locale) | ||||||
| { | { | ||||||
|     return file_exists(MIBEW_FS_ROOT . "/locales/$locale/properties"); |     return file_exists(MIBEW_FS_ROOT . "/locales/$locale/translation.po"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function locale_pattern_check($locale) | function locale_pattern_check($locale) | ||||||
| { | { | ||||||
|     $locale_pattern = "/^[\w-]{2,5}$/"; |     $locale_pattern = "/^[\w-]{2,5}$/"; | ||||||
| 
 | 
 | ||||||
|     return preg_match($locale_pattern, $locale) && $locale != 'names'; |     return preg_match($locale_pattern, $locale); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_available_locales() | function get_available_locales() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user