mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 22:42:25 +00:00 
			
		
		
		
	Fix warning glyphicons not being shown when translated
This commit is contained in:
		
							parent
							
								
									126517a985
								
							
						
					
					
						commit
						f110eb7f5b
					
				| @ -289,15 +289,15 @@ class Page { | |||||||
|         echo "<tr>"; |         echo "<tr>"; | ||||||
|         foreach ($array as $header => $text) { |         foreach ($array as $header => $text) { | ||||||
|             $style = ""; |             $style = ""; | ||||||
|             if ($header === "Reason") { |             if ($header === $this->lang->bans_reason || $header === $this->lang->mutes_reason || $header === $this->lang->warns_reason || $header == $this->lang->kicks_reason) { | ||||||
|                 $style = "style=\"width: 30%;\""; |                 $style = "style=\"width: 30%;\""; | ||||||
|                 if ($text === "") { |                 if ($text === "") { | ||||||
|                     $text = "-"; |                     $text = "-"; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             $a = "a"; |             $a = "a"; | ||||||
|             if ($header === "Received Warning") { |             if ($header === $this->lang->warns_receive) { | ||||||
|                 $icon = ($text !== "No") ? "glyphicon-ok" : "glyphicon-remove"; |                 $icon = ($text !== $this->lang->warns_no) ? "glyphicon-ok" : "glyphicon-remove"; | ||||||
|                 $a .= " class=\"glyphicon $icon\" aria-hidden=true";
 |                 $a .= " class=\"glyphicon $icon\" aria-hidden=true";
 | ||||||
|                 $text = ""; |                 $text = ""; | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ruan
						ruan