summaryrefslogtreecommitdiff
path: root/core/helpers/core_task.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-16 04:49:56 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-16 04:49:56 +0000
commit72fa5736ff611407c995aac19b06f6bf8c2f8a31 (patch)
tree5f6f3ba40988f9ceaddf4acaab3d394849b7bc1c /core/helpers/core_task.php
parentb2e37f20c73f7f29bafca9bcf95c1e59902a50ee (diff)
Rename Change xxx_task::available() to xxx_task::available_tasks()
Fix a bug in admin_maintenance.html.php where we were only showing the first task
Diffstat (limited to 'core/helpers/core_task.php')
-rw-r--r--core/helpers/core_task.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/core_task.php b/core/helpers/core_task.php
index a56c432f..6e90035a 100644
--- a/core/helpers/core_task.php
+++ b/core/helpers/core_task.php
@@ -18,14 +18,14 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class core_task_Core {
- static function available() {
+ static function available_tasks() {
$dirty_count = graphics::find_dirty_images_query()->count();
return array(Task::factory()
->callback("core_task::rebuild_dirty_images")
->name(t("Rebuild Images"))
->description($dirty_count ?
- t2("You have one image which is out of date",
- "You have %count out-of-date images",
+ t2("You have one out-of-date photo",
+ "You have %count out-of-date photo",
$dirty_count)
: t("All your images are up to date"))
->severity($dirty_count ? log::WARNING : log::SUCCESS));