This commit is contained in:
kremsy
2014-02-24 20:20:17 +01:00
committed by Steffen Schröder
parent ae53958b37
commit b403ceef31
8 changed files with 59 additions and 34 deletions

View File

@ -16,6 +16,7 @@ class Map {
*/
public $index = -1;
public $name = 'undefined';
public $rawName = '';
public $uid = '';
public $fileName = '';
public $environment = '';
@ -49,6 +50,7 @@ class Map {
return;
}
$this->name = FORMATTER::stripDirtyCodes($mpMap->name);
$this->rawName = $mpMap->name;
$this->uid = $mpMap->uId;
$this->fileName = $mpMap->fileName;
$this->authorLogin = $mpMap->author;

View File

@ -140,7 +140,7 @@ class MapManager implements CallbackListener {
trigger_error($mysqli->error);
return false;
}
$mapStatement->bind_param('ssssss', $map->uid, $map->name, $map->authorLogin, $map->fileName, $map->environment, $map->mapType);
$mapStatement->bind_param('ssssss', $map->uid, $map->rawName, $map->authorLogin, $map->fileName, $map->environment, $map->mapType);
$mapStatement->execute();
if ($mapStatement->error) {
trigger_error($mapStatement->error);