maplist optimations
This commit is contained in:
committed by
Steffen Schröder
parent
ae80995be6
commit
7fa6a0beda
@ -89,11 +89,20 @@ class ManiaExchangeManager {
|
||||
$saveMapStatement->close();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fetch Map Information from Mania Exchange
|
||||
* @param null $map
|
||||
*/
|
||||
public function fetchManiaExchangeMapInformations() {
|
||||
$maps = $this->maniaControl->mapManager->getMaps();
|
||||
public function fetchManiaExchangeMapInformations($map = null) {
|
||||
if(!$map){
|
||||
//Fetch Informations for whole Maplist
|
||||
$maps = $this->maniaControl->mapManager->getMaps();
|
||||
}else{
|
||||
//Fetch Information for a single map
|
||||
$maps[] = $map;
|
||||
}
|
||||
|
||||
$mysqli = $this->maniaControl->database->mysqli;
|
||||
$mapIdString = '';
|
||||
|
||||
|
Reference in New Issue
Block a user