From b46bfdd4921e27ed472aabfd06ab7c95f30e7e62 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Dec 2008 00:35:31 +0000 Subject: Separate permanent messages out of the message helper and put them into site_status. Show site status in the header in the admin theme. --- core/helpers/graphics.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core/helpers/graphics.php') diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index 62bde88a..8f0bb6a3 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -156,10 +156,11 @@ class graphics_Core { $count = self::find_dirty_images_query()->count(); if ($count) { - message::warning( + site_status::warning( sprintf(_("%d of your photos are out of date. %sClick here to fix them%s"), $count, "", ""), "graphics_dirty"); } @@ -204,7 +205,7 @@ class graphics_Core { if ($remaining == 0) { $task->done = true; $task->state = "success"; - message::clear_permanent("graphics_dirty"); + site_status::clear("graphics_dirty"); } } } -- cgit v1.2.3