summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment_installer.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php
index b54692ec..34968cb0 100644
--- a/modules/comment/helpers/comment_installer.php
+++ b/modules/comment/helpers/comment_installer.php
@@ -50,9 +50,7 @@ class comment_installer {
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
- $dashboard_blocks = unserialize(module::get_var("core", "dashboard_blocks"));
- $dashboard_blocks["main"][rand()] = array("comment", "recent_comments");
- module::set_var("core", "dashboard_blocks", serialize($dashboard_blocks));
+ dashboard::add_block("main", "comment", "recent_comments");
module::set_var("comment", "spam_caught", 0);
module::set_version("comment", 1);
}