diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 08:51:54 +0000 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 08:51:54 +0000 | 
| commit | c5f77510a77f42bf0a66d5d79353dbf040d41515 (patch) | |
| tree | 895cefac8755beeae7c8f970a9cc037f30610459 /modules/comment | |
| parent | bc421a615ab89cf5416af12173471235cdf5d297 (diff) | |
Refactor dashboard block handling out into a dashboard helper so that
module installers don't have to know the grotty details of how it works.
Diffstat (limited to 'modules/comment')
| -rw-r--r-- | modules/comment/helpers/comment_installer.php | 4 | 
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);      } | 
