aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-05 21:40:50 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-05 21:40:50 -0400
commitb2f46500941a2093734e7672a4de79aabd95b9fc (patch)
tree26714568811d3cd6a5d384a4c50cb67ac1afbb12
parent9d69bf365d7ac19ae87c060f9b39d1ca21dd8854 (diff)
downloadelgg-b2f46500941a2093734e7672a4de79aabd95b9fc.tar.gz
elgg-b2f46500941a2093734e7672a4de79aabd95b9fc.tar.bz2
Fixes #4438 using request language to clear up confusion
-rw-r--r--engine/lib/pagehandler.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php
index 46c7d059e..ba7518a77 100644
--- a/engine/lib/pagehandler.php
+++ b/engine/lib/pagehandler.php
@@ -31,18 +31,18 @@ function page_handler($handler, $page) {
}
// return false to stop processing the request (because you handled it)
- // return a new $params array if you want to route the request differently
- $params = array(
+ // return a new $request array if you want to route the request differently
+ $request = array(
'handler' => $handler,
'segments' => $page,
);
- $params = elgg_trigger_plugin_hook('route', $handler, NULL, $params);
- if ($params === false) {
+ $request = elgg_trigger_plugin_hook('route', $handler, null, $request);
+ if ($request === false) {
return true;
}
- $handler = $params['handler'];
- $page = $params['segments'];
+ $handler = $request['handler'];
+ $page = $request['segments'];
$result = false;
if (isset($CONFIG->pagehandler) && !empty($handler) && isset($CONFIG->pagehandler[$handler])) {