mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-18 07:39:54 -04:00
Dashboard blocks are now data driven, and you can add new blocks to
both the sidebar and the center content area from a dropdown at the top of the dashboard sidebar.
This commit is contained in:
@@ -49,6 +49,10 @@ class comment_installer {
|
||||
PRIMARY KEY (`id`))
|
||||
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
||||
|
||||
|
||||
$dashboard_blocks = unserialize(module::get_var("core", "dashboard_blocks"));
|
||||
$dashboard_blocks["main"][] = array("comment", "recent_comments");
|
||||
module::set_var("core", "dashboard_blocks", serialize($dashboard_blocks));
|
||||
module::set_var("comment", "spam_caught", 0);
|
||||
module::set_version("comment", 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user