Преглед изворни кода

Fixed the TS3 icon

Could have been easier rename the image, but every body would have 2 copies of the same icon after updating, so i prefered to overwrite the query name for teamspeak3 protocol on this variable, because on the case of TS3, this is the only place where it is used, to determine the name of the icon file.
DieFeM пре 9 година
родитељ
комит
84c84a3898
2 измењених фајлова са 4 додато и 0 уклоњено
  1. 2 0
      home.php
  2. 2 0
      modules/gamemanager/server_monitor.php

+ 2 - 0
home.php

@@ -178,6 +178,8 @@ function ogpHome()
 					$query_name = $server_xml->gameq_query_name;
 				elseif ($server_xml->protocol == "lgsl")
 					$query_name = $server_xml->lgsl_query_name;
+				elseif ($server_xml->protocol == "teamspeak3")
+					$query_name = 'ts3';
 				else
 					$query_name = $mod;
 				

+ 2 - 0
modules/gamemanager/server_monitor.php

@@ -453,6 +453,8 @@ function exec_ogp_module() {
 				$query_name = $server_xml->gameq_query_name;
 			elseif ($server_xml->protocol == "lgsl")
 				$query_name = $server_xml->lgsl_query_name;
+			elseif ($server_xml->protocol == "teamspeak3")
+				$query_name = 'ts3';
 			else
 				$query_name = $mod;