dedimania fix
This commit is contained in:
parent
04883a4dc6
commit
6195757f68
@ -53,7 +53,6 @@ class DedimaniaWebHandler {
|
|||||||
|
|
||||||
if (!$data || $error) {
|
if (!$data || $error) {
|
||||||
Logger::logError("Dedimania Error while opening session: '{$error}' Line 42");
|
Logger::logError("Dedimania Error while opening session: '{$error}' Line 42");
|
||||||
var_dump($data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = $this->decode($data);
|
$data = $this->decode($data);
|
||||||
@ -188,6 +187,7 @@ class DedimaniaWebHandler {
|
|||||||
$methodResponse = $data[0];
|
$methodResponse = $data[0];
|
||||||
if (xmlrpc_is_fault($methodResponse)) {
|
if (xmlrpc_is_fault($methodResponse)) {
|
||||||
$this->handleXmlRpcFault($methodResponse, self::DEDIMANIA_CHECK_SESSION);
|
$this->handleXmlRpcFault($methodResponse, self::DEDIMANIA_CHECK_SESSION);
|
||||||
|
$this->openDedimaniaSession();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,12 +233,13 @@ class LocalRecordsPlugin implements ManialinkPageAnswerListener, CallbackListene
|
|||||||
$quadStyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultQuadStyle();
|
$quadStyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultQuadStyle();
|
||||||
$quadSubstyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultQuadSubstyle();
|
$quadSubstyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultQuadSubstyle();
|
||||||
|
|
||||||
$records = $this->getLocalRecords($map, 1000);
|
$records = $this->getLocalRecords($map, 1000); //TODO limit setting
|
||||||
if (!is_array($records)) {
|
if (!is_array($records)) {
|
||||||
Logger::logError("Couldn't fetch player records.");
|
Logger::logError("Couldn't fetch player records.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO maybe only store if player is connected
|
||||||
$playerRecords = array();
|
$playerRecords = array();
|
||||||
foreach ($records as $index => $record) {
|
foreach ($records as $index => $record) {
|
||||||
$playerRecords[$record->playerIndex] = $index;
|
$playerRecords[$record->playerIndex] = $index;
|
||||||
|
Loading…
Reference in New Issue
Block a user