commit dc35e6b49e962e8b366c6e2503313705b20e37a5
parent 39a1f231a392985fc7f62204a9592422b79b6c34
Author: Jan Dankert <devnull@localhost>
Date: Tue, 15 Jul 2014 00:08:24 +0200
Vorbelegung der Meldung in Http::notAuthorized()
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/util/Http.class.php b/util/Http.class.php
@@ -442,9 +442,9 @@ class Http
* @param String $text Text
* @param String $message Eigener Hinweistext
*/
- public static function notAuthorized($text,$message)
+ public static function notAuthorized($message='')
{
- Http::sendStatus(403,$text,$message);
+ Http::sendStatus(403,'Not authorized',$message);
}
@@ -463,7 +463,7 @@ class Http
*/
public static function notFound($text,$message)
{
- Http::sendStatus(404,$text,$message);
+ Http::sendStatus(404,'Not found',$message);
}