mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/controller] Flip method parameters, require $message
PHPBB3-10864
This commit is contained in:
parent
d41b1146e8
commit
1952a4f276
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue