]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Page handler uses call_user_func (so methods of classes can be used as page handlers)
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 02:56:46 +0000 (02:56 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 02:56:46 +0000 (02:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8138 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/pagehandler.php

index 727ace54d0fce42c1c39fa55a0ff912aad49876c..0f06dcd31f7702ddff5a91e716cc2668293ba9d8 100644 (file)
@@ -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;
                }