added lagoon environment
This commit is contained in:
		@@ -325,23 +325,4 @@ class ManiaExchangeManager implements UsageInformationAble {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		$mapSearch->fetchMapsAsync($function);
 | 
							$mapSearch->fetchMapsAsync($function);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	/**
 | 
					 | 
				
			||||||
	 * Get the Current Environment by String
 | 
					 | 
				
			||||||
	 *
 | 
					 | 
				
			||||||
	 * @param string $env
 | 
					 | 
				
			||||||
	 * @return int
 | 
					 | 
				
			||||||
	 */
 | 
					 | 
				
			||||||
	private function getEnvironment($env) {
 | 
					 | 
				
			||||||
		switch ($env) {
 | 
					 | 
				
			||||||
			case 'TMCanyon':
 | 
					 | 
				
			||||||
				return 1;
 | 
					 | 
				
			||||||
			case 'TMStadium':
 | 
					 | 
				
			||||||
				return 2;
 | 
					 | 
				
			||||||
			case 'TMValley':
 | 
					 | 
				
			||||||
				return 3;
 | 
					 | 
				
			||||||
			default:
 | 
					 | 
				
			||||||
				return -1;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -114,7 +114,7 @@ class ManiaExchangeMapSearch implements UsageInformationAble {
 | 
				
			|||||||
		//Set some defaults:
 | 
							//Set some defaults:
 | 
				
			||||||
		$this->mapLimit      = 100;
 | 
							$this->mapLimit      = 100;
 | 
				
			||||||
		$this->priorityOrder = self::SEARCH_ORDER_UPDATED_NEWEST;
 | 
							$this->priorityOrder = self::SEARCH_ORDER_UPDATED_NEWEST;
 | 
				
			||||||
		$this->mp4 = true;
 | 
							$this->mp4           = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Set Min Exe Build Default for games which are not Trackmania
 | 
							//Set Min Exe Build Default for games which are not Trackmania
 | 
				
			||||||
		/*if ($this->titlePrefix !== "tm") {
 | 
							/*if ($this->titlePrefix !== "tm") {
 | 
				
			||||||
@@ -224,8 +224,8 @@ class ManiaExchangeMapSearch implements UsageInformationAble {
 | 
				
			|||||||
		if (isset($this->key)) {
 | 
							if (isset($this->key)) {
 | 
				
			||||||
			$parameters .= "&key=" . $this->key;
 | 
								$parameters .= "&key=" . $this->key;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (isset($this->mp4)){
 | 
							if (isset($this->mp4)) {
 | 
				
			||||||
			$parameters .= "&mp4=" .  $this->mp4;
 | 
								$parameters .= "&mp4=" . $this->mp4;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $this->url . $parameters);
 | 
							$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $this->url . $parameters);
 | 
				
			||||||
@@ -278,6 +278,8 @@ class ManiaExchangeMapSearch implements UsageInformationAble {
 | 
				
			|||||||
				return 2;
 | 
									return 2;
 | 
				
			||||||
			case 'TMValley':
 | 
								case 'TMValley':
 | 
				
			||||||
				return 3;
 | 
									return 3;
 | 
				
			||||||
 | 
								case 'TMLagoon':
 | 
				
			||||||
 | 
									return 4;
 | 
				
			||||||
			default:
 | 
								default:
 | 
				
			||||||
				return -1;
 | 
									return -1;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user