diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-07 21:20:37 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-07 21:20:37 -0700 |
| commit | 74d4a4c0fd0d1aa2e93e62397b0b0a10d55b986d (patch) | |
| tree | 70d5a48fc8bfcf0a7db0ceb94d284d6df38c92f0 /modules/search/helpers/search.php | |
| parent | faabae5dae712ebff656abe8ebc493d8e031d4a3 (diff) | |
| parent | 6ac5238b83d58824eb9327406a2ee50b7e603214 (diff) | |
Merge branch 'master' of git@github.com:/gallery/gallery3
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() { |
