mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/10614] Remove ext manager exceptions for now
PHPBB3-10614
This commit is contained in:
@@ -132,12 +132,6 @@ class phpbb_extension_manager
|
|||||||
*/
|
*/
|
||||||
public function enable_step($name)
|
public function enable_step($name)
|
||||||
{
|
{
|
||||||
$ext_path = $this->get_extension_path($name);
|
|
||||||
if (!file_exists($ext_path))
|
|
||||||
{
|
|
||||||
throw new InvalidArgumentException('The provided extension does not exist.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// ignore extensions that are already enabled
|
// ignore extensions that are already enabled
|
||||||
if (isset($this->extensions[$name]) && $this->extensions[$name]['ext_active'])
|
if (isset($this->extensions[$name]) && $this->extensions[$name]['ext_active'])
|
||||||
{
|
{
|
||||||
@@ -158,7 +152,7 @@ class phpbb_extension_manager
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->extensions[$name] = $extension_data;
|
$this->extensions[$name] = $extension_data;
|
||||||
$this->extensions[$name]['ext_path'] = $ext_path;
|
$this->extensions[$name]['ext_path'] = $this->get_extension_path($extension_data['ext_name']);
|
||||||
ksort($this->extensions);
|
ksort($this->extensions);
|
||||||
|
|
||||||
$sql = 'UPDATE ' . $this->extension_table . '
|
$sql = 'UPDATE ' . $this->extension_table . '
|
||||||
@@ -203,12 +197,6 @@ class phpbb_extension_manager
|
|||||||
*/
|
*/
|
||||||
public function disable_step($name)
|
public function disable_step($name)
|
||||||
{
|
{
|
||||||
$ext_path = $this->get_extension_path($name);
|
|
||||||
if (!file_exists($ext_path))
|
|
||||||
{
|
|
||||||
throw new InvalidArgumentException('The provided extension does not exist.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// ignore extensions that are already disabled
|
// ignore extensions that are already disabled
|
||||||
if (!isset($this->extensions[$name]) || !$this->extensions[$name]['ext_active'])
|
if (!isset($this->extensions[$name]) || !$this->extensions[$name]['ext_active'])
|
||||||
{
|
{
|
||||||
@@ -280,12 +268,6 @@ class phpbb_extension_manager
|
|||||||
*/
|
*/
|
||||||
public function purge_step($name)
|
public function purge_step($name)
|
||||||
{
|
{
|
||||||
$ext_path = $this->get_extension_path($name);
|
|
||||||
if (!file_exists($ext_path))
|
|
||||||
{
|
|
||||||
throw new InvalidArgumentException('The provided extension does not exist.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// ignore extensions that do not exist
|
// ignore extensions that do not exist
|
||||||
if (!isset($this->extensions[$name]))
|
if (!isset($this->extensions[$name]))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user