aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-02-09 01:36:06 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-02-09 01:36:06 +0100
commit36728d3414e513f0b4aede75d53316e208e5eceb (patch)
tree080a833defccf680d378f4af1ea73fa399197a5f /phpBB/includes
parentfb83a5f6c07fe1d3755d868b93bb632802ab7fb7 (diff)
downloadforums-36728d3414e513f0b4aede75d53316e208e5eceb.tar
forums-36728d3414e513f0b4aede75d53316e208e5eceb.tar.gz
forums-36728d3414e513f0b4aede75d53316e208e5eceb.tar.bz2
forums-36728d3414e513f0b4aede75d53316e208e5eceb.tar.xz
forums-36728d3414e513f0b4aede75d53316e208e5eceb.zip
[ticket/10614] Refactor list command to use manager API
PHPBB3-10614
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/extension/manager.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php
index b7f76d0400..b8643b39ee 100644
--- a/phpBB/includes/extension/manager.php
+++ b/phpBB/includes/extension/manager.php
@@ -61,7 +61,7 @@ class phpbb_extension_manager
*
* @return null
*/
- protected function load_extensions()
+ public function load_extensions()
{
$sql = 'SELECT *
FROM ' . $this->extension_table;
@@ -173,6 +173,8 @@ class phpbb_extension_manager
$this->db->sql_query($sql);
}
+ $this->cache->destroy($this->cache_name);
+
return !$active;
}
@@ -231,6 +233,8 @@ class phpbb_extension_manager
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
$this->db->sql_query($sql);
+ $this->cache->destroy($this->cache_name);
+
return true;
}
@@ -246,6 +250,8 @@ class phpbb_extension_manager
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
$this->db->sql_query($sql);
+ $this->cache->destroy($this->cache_name);
+
return false;
}
@@ -310,6 +316,8 @@ class phpbb_extension_manager
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
$this->db->sql_query($sql);
+ $this->cache->destroy($this->cache_name);
+
return true;
}
@@ -319,6 +327,8 @@ class phpbb_extension_manager
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
$this->db->sql_query($sql);
+ $this->cache->destroy($this->cache_name);
+
return false;
}