error reports: backtrace split from message

This commit is contained in:
Steffen Schröder
2014-03-19 14:00:24 +01:00
parent 57375a6e8b
commit 4d5280ce8f
5 changed files with 52 additions and 14 deletions

View File

@ -844,7 +844,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
}
/**
* Encodes the given xml rpc method and params
* Encode the given xml rpc method and params
*
* @param string $method
* @param array $params
@ -856,7 +856,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
}
/**
* Handles xml rpc fault
* Handle xml rpc fault
*
* @param $fault
* @param $method
@ -865,10 +865,14 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
trigger_error('XmlRpc Fault on ' . $method . ': ' . $fault['faultString'] . ' (' . $fault['faultCode'] . ')');
}
/**
* Build Manialink
*
* @return \FML\ManiaLink
*/
private function buildManialink() {
if (!$this->dedimaniaData->records) {
return '';
return null;
}
$records = $this->dedimaniaData->records;

View File

@ -448,7 +448,7 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin {
*/
$requester = null;
// if the nextmap is not a queued map, get it from map info
if ($queuedMap == null) {
if (!$queuedMap) {
$map = $this->maniaControl->client->getNextMapInfo();
$name = Formatter::stripDirtyCodes($map->name);
$author = $map->author;