aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 02:56:46 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 02:56:46 +0000
commit98b61f4a6e1bb08dced4ecea4cd72939b69692f6 (patch)
tree13b5f38e177e422d4ba2c1376f33e4a6fafd402b /engine
parent3e7adbf8198d1bd5e0ad4e97ae5643d7dc8c61ab (diff)
downloadelgg-98b61f4a6e1bb08dced4ecea4cd72939b69692f6.tar.gz
elgg-98b61f4a6e1bb08dced4ecea4cd72939b69692f6.tar.bz2
Page handler uses call_user_func (so methods of classes can be used as page handlers)
git-svn-id: http://code.elgg.org/elgg/trunk@8138 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/pagehandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php
index 727ace54d..0f06dcd31 100644
--- a/engine/lib/pagehandler.php
+++ b/engine/lib/pagehandler.php
@@ -31,7 +31,7 @@ function page_handler($handler, $page) {
$result = false;
} else if (isset($CONFIG->pagehandler[$handler]) && is_callable($CONFIG->pagehandler[$handler])) {
$function = $CONFIG->pagehandler[$handler];
- $result = $function($page, $handler);
+ $result = call_user_func($function, $page, $handler);
if ($result !== false) {
$result = true;
}