diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-05 12:40:58 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-05 12:40:58 +0000 |
commit | 5496c918eb0f4f0166b329f6f30ac267b992ee3d (patch) | |
tree | 57bc5d9b08a63e45818fa2b8aeae6853d58dd7d5 /engine/lib | |
parent | d4e975f1e2c9847ae3faa139ed6b01d50b5333ad (diff) | |
download | elgg-5496c918eb0f4f0166b329f6f30ac267b992ee3d.tar.gz elgg-5496c918eb0f4f0166b329f6f30ac267b992ee3d.tar.bz2 |
Fixed search RSS
git-svn-id: https://code.elgg.org/elgg/trunk@3090 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 93f12b057..6f0bad1e6 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2335,6 +2335,19 @@ }
}
+/**
+ * Page handler for search
+ *
+ * @param array $page Page elements from pain page handler
+ */
+ function search_page_handler($page) {
+ if (isset($page[0])) {
+ global $CONFIG;
+ set_input('tag',$page[0]);
+ include_once($CONFIG->path . "search/index.php");
+ }
+ }
+
/**
* Returns a viewable list of entities based on the registered types
*
@@ -2723,6 +2736,7 @@ */
function entities_init() {
register_page_handler('view','entities_page_handler');
+ register_page_handler('search','search_page_handler');
// Allow a permission override for recursive entity deletion
// TODO: Can this be done better?
|