mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-29 10:26:46 -04:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user