aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-02 10:26:39 -0400
committercash <cash.costello@gmail.com>2011-07-02 10:26:39 -0400
commit3beedd84a7dbcf7a17a75248473302320653d231 (patch)
tree8bdb6a30f8a92c6f609f3250e2e50f33e9bdd903 /engine
parentb307bcbdc8b0f269a5408a824dc4a7c3c2e9570f (diff)
downloadelgg-3beedd84a7dbcf7a17a75248473302320653d231.tar.gz
elgg-3beedd84a7dbcf7a17a75248473302320653d231.tar.bz2
fixed river for #3544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/river.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 36dde7f05..1a2be1e50 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -589,10 +589,13 @@ function elgg_river_page_handler($page) {
elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
+ // make a URL segment available in page handler script
$page_type = elgg_extract(0, $page, 'all');
+ $page_type = preg_replace('[\W]', '', $page_type);
if ($page_type == 'owner') {
$page_type = 'mine';
}
+ set_input('page_type', $page_type);
// content filter code here
$entity_type = '';