[feature/controller] Flip method parameters, require $message

PHPBB3-10864
This commit is contained in:
David King 2012-11-16 10:38:40 -05:00
parent d41b1146e8
commit 1952a4f276

View file

@ -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,