From e12a4f2ae392a91db0c649367977d46cedc87e68 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 01:13:57 +0000 Subject: Move the "status messages" section into its own block. --- core/helpers/core_block.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 7f0bb50a..b5f7ccf4 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -35,7 +35,15 @@ class core_block_Core { $block->id = "gWelcome"; $block->title = _("Welcome to Gallery3"); $block->content = new View("admin_block_welcome.html"); - return $block; + $blocks[] = $block; + + $block = new Block(); + $block->id = "gMessages"; + $block->title = _("Status Messages"); + $block->content = new View("admin_block_messages.html"); + $blocks[] = $block; + + return implode("\n", $blocks); } public static function admin_sidebar_blocks($theme) { -- cgit v1.2.3