DatabaseConverter / improvement mapmanager
This commit is contained in:
parent
35b5e2ac47
commit
0c1e479711
@ -30,8 +30,8 @@ class MapManager implements CallbackListener {
|
|||||||
const SETTING_PERMISSION_REMOVE_MAP = 'Remove Maps';
|
const SETTING_PERMISSION_REMOVE_MAP = 'Remove Maps';
|
||||||
const SETTING_PERMISSION_SHUFFLE_MAPS = 'Shuffle Maps';
|
const SETTING_PERMISSION_SHUFFLE_MAPS = 'Shuffle Maps';
|
||||||
const SETTING_PERMISSION_CHECK_UPDATE = 'Check Map Update';
|
const SETTING_PERMISSION_CHECK_UPDATE = 'Check Map Update';
|
||||||
const SETTING_PERMISSION_SKIP_MAP = 'Skip Map';
|
const SETTING_PERMISSION_SKIP_MAP = 'Skip Map';
|
||||||
const SETTING_PERMISSION_RESTART_MAP = 'Restart Map';
|
const SETTING_PERMISSION_RESTART_MAP = 'Restart Map';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Public Properties
|
* Public Properties
|
||||||
@ -126,7 +126,10 @@ class MapManager implements CallbackListener {
|
|||||||
) VALUES (
|
) VALUES (
|
||||||
?, ?, ?, ?, ?, ?
|
?, ?, ?, ?, ?, ?
|
||||||
) ON DUPLICATE KEY UPDATE
|
) ON DUPLICATE KEY UPDATE
|
||||||
`index` = LAST_INSERT_ID(`index`);";
|
`index` = LAST_INSERT_ID(`index`),
|
||||||
|
`fileName` = LAST_INSERT_ID(`fileName`),
|
||||||
|
`environment` = LAST_INSERT_ID(`environment`),
|
||||||
|
`mapType` = LAST_INSERT_ID(`mapType`);";
|
||||||
$mapStatement = $mysqli->prepare($mapQuery);
|
$mapStatement = $mysqli->prepare($mapQuery);
|
||||||
if ($mysqli->error) {
|
if ($mysqli->error) {
|
||||||
trigger_error($mysqli->error);
|
trigger_error($mysqli->error);
|
||||||
|
@ -207,7 +207,7 @@ class StatisticCollector implements CallbackListener {
|
|||||||
*
|
*
|
||||||
* @param array $callback
|
* @param array $callback
|
||||||
*/
|
*/
|
||||||
public function handleCallbacks(array $callback) {
|
public function handleCallbacks(array $callback) { //TODO survivals
|
||||||
//Check if Stat Collecting is enabled
|
//Check if Stat Collecting is enabled
|
||||||
if (!$this->maniaControl->settingManager->getSetting($this, self::SETTING_COLLECT_STATS_ENABLED)) {
|
if (!$this->maniaControl->settingManager->getSetting($this, self::SETTING_COLLECT_STATS_ENABLED)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user