diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-29 00:35:31 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-29 00:35:31 +0000 |
commit | b46bfdd4921e27ed472aabfd06ab7c95f30e7e62 (patch) | |
tree | e522d493e45bf30514566e8da4f0f1d268f706e1 /core/helpers/graphics.php | |
parent | ed8689f768f81d2c3ed8bee70c43d4f7c71c108e (diff) |
Separate permanent messages out of the message helper and put them
into site_status. Show site status in the header in the admin theme.
Diffstat (limited to 'core/helpers/graphics.php')
-rw-r--r-- | core/helpers/graphics.php | 7 |
1 files changed, 4 insertions, 3 deletions
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, "<a href=\"" . - url::site("admin/maintenance/start/rebuild_images?csrf=" . access::csrf_token()) . + url::site("admin/maintenance/start/graphics::rebuild_dirty_images?csrf=" . + access::csrf_token()) . "\" class=\"gDialogLink\">", "</a>"), "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"); } } } |