mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-29 10:26:46 -04:00
Refactor dashboard -> block_manager since it'll manage blocks site
wide, not just in the dashboard.
This commit is contained in:
+2
-2
@@ -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":
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user