summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-28 18:39:18 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-28 18:39:18 +0000
commit89c4dadec2a7c9cfd55affa118ed681a9654a58c (patch)
treeadb32dee5860eb530c01edf96e8c8d639d2efc80
parenta7f6efa2f2bed248149fb2f5d3833301b92a2ecf (diff)
Rename module::get_list() to module::installed()
-rw-r--r--core/helpers/module.php2
-rw-r--r--core/libraries/Theme_View.php2
-rw-r--r--modules/gallery_unit_test/controllers/test.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index 7d6d7f64..fc76c033 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -51,7 +51,7 @@ class module_Core {
return ORM::factory("module")->where("name", $module_name)->find()->loaded;
}
- public static function get_list() {
+ public static function installed() {
return ORM::factory("module")->find_all();
}
}
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 5a29a84a..16cc8df9 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -98,7 +98,7 @@ class Theme_View_Core extends View {
$debug = Session::instance()->get("debug", false);
$blocks = array();
- foreach (module::get_list() as $module) {
+ foreach (module::installed() as $module) {
$helper_class = "{$module->name}_block";
if (method_exists($helper_class, $function)) {
$blocks[] = call_user_func_array(
diff --git a/modules/gallery_unit_test/controllers/test.php b/modules/gallery_unit_test/controllers/test.php
index 41da85ea..b5835556 100644
--- a/modules/gallery_unit_test/controllers/test.php
+++ b/modules/gallery_unit_test/controllers/test.php
@@ -71,7 +71,7 @@ class Test_Controller extends Controller {
}
private function _uninstall_modules() {
- foreach (module::get_list() as $module) {
+ foreach (module::installed() as $module) {
if ($module->name == "core") {
continue;
}