aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 12:40:58 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 12:40:58 +0000
commit5496c918eb0f4f0166b329f6f30ac267b992ee3d (patch)
tree57bc5d9b08a63e45818fa2b8aeae6853d58dd7d5
parentd4e975f1e2c9847ae3faa139ed6b01d50b5333ad (diff)
downloadelgg-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
-rw-r--r--engine/lib/entities.php14
-rw-r--r--htaccess_dist2
2 files changed, 15 insertions, 1 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?
diff --git a/htaccess_dist b/htaccess_dist
index 4237460a0..9e6c40beb 100644
--- a/htaccess_dist
+++ b/htaccess_dist
@@ -124,6 +124,6 @@ RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1
RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php
RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php
-RewriteRule ^tag/(.+)/?$ search/?tag=$1
+RewriteRule ^tag/(.+)/?$ engine/handlers/pagehandler.php?handler=search&page=$1
</IfModule> \ No newline at end of file