summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-18 06:55:04 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-18 06:55:04 +0000
commit7b68ca9946772fdb8fa2db756e934cc7883ea52d (patch)
tree93631ccca65b29ed42ccc901aa12f79b3395ca70 /modules
parent3d1ea2904d982422ce24c43b25d0d4bca6f29aa3 (diff)
Refactor dashboard -> block_manager since it'll manage blocks site
wide, not just in the dashboard.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/helpers/comment_block.php (renamed from modules/comment/helpers/comment_dashboard.php)4
-rw-r--r--modules/comment/helpers/comment_installer.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment_dashboard.php b/modules/comment/helpers/comment_block.php
index 984c4cea..9a8e83ec 100644
--- a/modules/comment/helpers/comment_dashboard.php
+++ b/modules/comment/helpers/comment_block.php
@@ -17,12 +17,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-class comment_dashboard_Core {
+class comment_block_Core {
static function get_list() {
return array("recent_comments" => t("Recent Comments"));
}
- static function get_block($block_id) {
+ static function get($block_id) {
$block = new Block();
switch ($block_id) {
case "recent_comments":
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php
index 651065f7..12caa547 100644
--- a/modules/comment/helpers/comment_installer.php
+++ b/modules/comment/helpers/comment_installer.php
@@ -50,7 +50,7 @@ class comment_installer {
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
- dashboard::add_block("main", "comment", "recent_comments");
+ block_manager::add("dashboard_center", "comment", "recent_comments");
module::set_var("comment", "spam_caught", 0);
module::set_version("comment", 1);
}