minor changes

This commit is contained in:
Steffen Schröder 2014-05-24 21:53:07 +02:00
parent 02222680e2
commit fcd4e577cf
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ abstract class FileUtil {
*/
public static function getClearedFileName($fileName) {
$fileName = Formatter::stripCodes($fileName);
$fileName = str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
$fileName = str_replace(array(DIRECTORY_SEPARATOR, '\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
$fileName = preg_replace('/[^[:print:]]/', '', $fileName);
return $fileName;
}

View File

@ -418,7 +418,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
* @param Player $player
*/
private function sendPayUsageExample(Player $player) {
$message = "Usage Example: '/pay 100 login'";
$message = "Usage Example: '//pay 100 login'";
$this->maniaControl->chat->sendChat($message, $player->login);
}