mirror of
				https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
				synced 2025-10-30 19:40:20 -04:00 
			
		
		
		
	Reverses partial changes commited in PR #63
- Removes not needed re-translation of statuses. These fails to be translated due to index.php calling config.php after performing the translation. See #64 for details - Amend SQL query to use named fields to prevent potential failure in future upgrades if table should change.
This commit is contained in:
		
							parent
							
								
									b5c5a2c8cf
								
							
						
					
					
						commit
						528cb77952
					
				| @ -71,7 +71,7 @@ class Service implements JsonSerializable | ||||
|     { | ||||
|       global $mysqli; | ||||
|       $name = $_POST['service']; | ||||
|       $stmt = $mysqli->prepare("INSERT INTO services VALUES(NULL,?)"); | ||||
|       $stmt = $mysqli->prepare("INSERT INTO services ( name ) VALUES ( ? )"); | ||||
|       $stmt->bind_param("s", $name); | ||||
|       $stmt->execute(); | ||||
|       $stmt->get_result(); | ||||
| @ -146,9 +146,9 @@ class Service implements JsonSerializable | ||||
|        | ||||
|     if ($statuses[$worst] == count($array)) | ||||
|     { | ||||
|       echo _($all[$worst]); | ||||
|       echo $all[$worst]; | ||||
|     }else{ | ||||
|       echo _($some[$worst]); | ||||
|       echo $some[$worst]; | ||||
|     } | ||||
|     echo '</div>'; | ||||
|   } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user