mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/14269] Change HTTP status codes to 403
PHPBB3-14269
This commit is contained in:
@@ -105,7 +105,7 @@ class install
|
|||||||
{
|
{
|
||||||
if ($this->install_helper->is_phpbb_installed())
|
if ($this->install_helper->is_phpbb_installed())
|
||||||
{
|
{
|
||||||
throw new http_exception(404, 'INSTALL_PHPBB_INSTALLED');
|
throw new http_exception(403, 'INSTALL_PHPBB_INSTALLED');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->template->assign_vars(array(
|
$this->template->assign_vars(array(
|
||||||
|
@@ -103,7 +103,7 @@ class update
|
|||||||
{
|
{
|
||||||
if (!$this->install_helper->is_phpbb_installed())
|
if (!$this->install_helper->is_phpbb_installed())
|
||||||
{
|
{
|
||||||
throw new http_exception(404, 'INSTALL_PHPBB_NOT_INSTALLED');
|
throw new http_exception(403, 'INSTALL_PHPBB_NOT_INSTALLED');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->template->assign_vars(array(
|
$this->template->assign_vars(array(
|
||||||
|
Reference in New Issue
Block a user