This commit is contained in:
kremsy
2014-03-03 19:27:35 +01:00
committed by Steffen Schröder
parent 46d7adbf17
commit bc67ba224b
4 changed files with 17 additions and 10 deletions

View File

@ -611,7 +611,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
$query .= '?sessionKey=' . urlencode($this->mxKarma['session']->sessionKey);
$query .= '&activationHash=' . urlencode($hash);
$this->maniaControl->fileReader->loadFile($query, function ($data, $error) {
$this->maniaControl->fileReader->loadFile($query, function ($data, $error) use($query) {
if (!$error) {
$data = json_decode($data);
if ($data->success && $data->data->activated) {
@ -619,7 +619,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
} else {
$this->maniaControl->log("Error while authenticating on Mania-Exchange Karma " . $data->data->message);
//TODO remove temp trigger
$this->maniaControl->errorHandler->triggerDebugNotice("Error while authenticating on Mania-Exchange Karma " . $data->data->message);
$this->maniaControl->errorHandler->triggerDebugNotice("Error while authenticating on Mania-Exchange Karma " . $data->data->message . " url Query " . $query);
}
} else {
//TODO remove temp trigger