fixed leftover maniascript logging

This commit is contained in:
Steffen Schröder committed 2014-05-01 17:35:47 +02:00
1 parent 2442177166
commit 2cdb00131a
3 files changed
+41 -22

No files matched your search

@@ -158,6 +158,23 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener
}
}
/**
* Hide the Manialink with the given Id
*
* @param mixed $manialinkId
* @param mixed $logins
*/
public function hideManialink($manialinkId, $logins = null) {
if (is_array($manialinkId)) {
foreach ($manialinkId as $mlId) {
$this->hideManialink($mlId, $logins);
}
} else {
$emptyManialink = new ManiaLink($manialinkId);
$this->sendManialink($emptyManialink, $logins);
}
}
/**
* Send the given manialink to players
*