split instances if string otherwise treat as array
This commit is contained in:
		
							parent
							
								
									c652e8e20f
								
							
						
					
					
						commit
						ba5cd27007
					
				| @ -68,7 +68,8 @@ continue; | |||||||
|                 $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n"; |                 $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n"; | ||||||
|         } |         } | ||||||
|         if($key === "INSTANCES") { |         if($key === "INSTANCES") { | ||||||
|                 $output = $output . "\tconst " . $key . " = " . type_to_string(explode(',', $val)) . ";\n"; |                 $instances_list = gettype($val) === "string" ? explode(",", $val) : $val; | ||||||
|  |                 $output = $output . "\tconst " . $key . " = " . type_to_string($instances_list) . ";\n"; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 throwaway
						throwaway