karma small fixes
This commit is contained in:
parent
a3a3d15c7d
commit
350e82d32b
@ -44,7 +44,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
const VERSION = 0.132;
|
||||
const VERSION = 0.14;
|
||||
const API_VERSION = '2013-04-16';
|
||||
const MIN_DEDIVERSION = '2014-04-02_18_00';
|
||||
const OS_UNIX = 'Unix';
|
||||
|
@ -384,6 +384,10 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
|
||||
$self->maniaControl->log("MX-Karma Votes successfully fetched");
|
||||
} else {
|
||||
$self->maniaControl->log("Error while fetching votes: " . $data->data->message);
|
||||
if($data->data->message == "invalid session"){
|
||||
unset($this->mxKarma['session']);
|
||||
return;
|
||||
}
|
||||
// TODO remove temp trigger
|
||||
$self->maniaControl->errorHandler->triggerDebugNotice("Error while fetching votes: " . $data->data->message . " " . KarmaPlugin::MX_KARMA_URL . KarmaPlugin::MX_KARMA_SAVEVOTES . "?sessionKey=" . urlencode($self->mxKarma['session']->sessionKey));
|
||||
}
|
||||
@ -477,6 +481,10 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
|
||||
$self->maniaControl->log("Votes successfully permitted");
|
||||
} else {
|
||||
$self->maniaControl->log("Error while updating votes: " . $data->data->message);
|
||||
if($data->data->message == "invalid session"){
|
||||
unset($this->mxKarma['session']);
|
||||
return;
|
||||
}
|
||||
// TODO remove temp trigger
|
||||
$self->maniaControl->errorHandler->triggerDebugNotice("Error while updating votes: " . $data->data->message . " " . KarmaPlugin::MX_KARMA_URL . $self::MX_KARMA_SAVEVOTES . "?sessionKey=" . urlencode($self->mxKarma['session']->sessionKey));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user