diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 08:43:42 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 08:43:42 -0700 |
| commit | e7e2d99255259a708999727ae3a56777898a3426 (patch) | |
| tree | 78f714cb36d04e8987f0c77eb1be10dd80259236 /modules/search/helpers/search.php | |
| parent | 724d2af960c55b5a60b3c5e6bf68585426d46ab0 (diff) | |
Revert "Revert "Add task logging to the "Update Search Index" task""
This reverts commit 5118afc959650469874733a1060fbe22364d8c28.
Diffstat (limited to 'modules/search/helpers/search.php')
| -rw-r--r-- | modules/search/helpers/search.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php index ea8dad81..34eaecbd 100644 --- a/modules/search/helpers/search.php +++ b/modules/search/helpers/search.php @@ -50,6 +50,9 @@ class search_Core { return array($count, new ORM_Iterator(ORM::factory("item"), $db->query($query))); } + /** + * @return string An error message suitable for inclusion in the task log + */ static function check_index() { list ($remaining) = search::stats(); if ($remaining) { @@ -76,6 +79,7 @@ class search_Core { $record->data = join(" ", $data); $record->dirty = 0; $record->save(); + return t("Search index updated for '%title'", array("title" => p::purify($item->title))); } static function stats() { |
