summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiwilson <wilsonpscheung@gmail.com>2009-07-19 18:43:08 +0800
committerBharat Mediratta <bharat@menalto.com>2009-07-20 04:06:58 +0800
commit0e4a7a5133dab7d834657c67fcf5d07bc1ea3211 (patch)
tree23b1175424d1f1291ccf8099cb1a18b4a981951b
parent322e2fab6be0717a95ca98a1d97f2e284ce5fcc2 (diff)
make tags to be searchable. work with http://github.com/hiwilson/gallery3/commit/a5eef648c00ec3ddee40ebd716380ae0a50e90e7
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
-rw-r--r--modules/tag/helpers/tag_search.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag_search.php b/modules/tag/helpers/tag_search.php
new file mode 100644
index 00000000..e14b9f4d
--- /dev/null
+++ b/modules/tag/helpers/tag_search.php
@@ -0,0 +1,24 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2009 Bharat Mediratta
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+class tag_search_Core {
+ static function item_index_data($item) {
+ return join(" ", tag::get_tags($item));
+ }
+}