aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/extension
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-02-09 01:37:53 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-02-09 01:37:53 +0100
commit68e4c667fa5f29f7974b83549a2a9bb8bbd8abc5 (patch)
treeb85853ccf73e8f9b54789e17e40091dec101d9c7 /phpBB/includes/extension
parent36728d3414e513f0b4aede75d53316e208e5eceb (diff)
downloadforums-68e4c667fa5f29f7974b83549a2a9bb8bbd8abc5.tar
forums-68e4c667fa5f29f7974b83549a2a9bb8bbd8abc5.tar.gz
forums-68e4c667fa5f29f7974b83549a2a9bb8bbd8abc5.tar.bz2
forums-68e4c667fa5f29f7974b83549a2a9bb8bbd8abc5.tar.xz
forums-68e4c667fa5f29f7974b83549a2a9bb8bbd8abc5.zip
[ticket/10614] Remove ext manager exceptions for now
PHPBB3-10614
Diffstat (limited to 'phpBB/includes/extension')
-rw-r--r--phpBB/includes/extension/manager.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php
index b8643b39ee..12b626d69f 100644
--- a/phpBB/includes/extension/manager.php
+++ b/phpBB/includes/extension/manager.php
@@ -132,12 +132,6 @@ class phpbb_extension_manager
*/
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
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]['ext_path'] = $ext_path;
+ $this->extensions[$name]['ext_path'] = $this->get_extension_path($extension_data['ext_name']);
ksort($this->extensions);
$sql = 'UPDATE ' . $this->extension_table . '
@@ -203,12 +197,6 @@ class phpbb_extension_manager
*/
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
if (!isset($this->extensions[$name]) || !$this->extensions[$name]['ext_active'])
{
@@ -280,12 +268,6 @@ class phpbb_extension_manager
*/
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
if (!isset($this->extensions[$name]))
{