aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/controller/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/controller/helper.php')
-rw-r--r--phpBB/includes/controller/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/controller/helper.php b/phpBB/includes/controller/helper.php
index 6dc3ec4626..6cacc8fefa 100644
--- a/phpBB/includes/controller/helper.php
+++ b/phpBB/includes/controller/helper.php
@@ -101,11 +101,11 @@ class phpbb_controller_helper
/**
* Output an error, effectively the same thing as trigger_error
*
- * @param string $code The error code (e.g. 404, 500, 503, etc.)
* @param string $message The error message
+ * @param string $code The error code (e.g. 404, 500, 503, etc.)
* @return Response A Reponse instance
*/
- public function error($code = 500, $message = '')
+ public function error($message, $code = 500)
{
$this->template->assign_vars(array(
'MESSAGE_TEXT' => $message,