Fixes bug in wcf\system\template\plugin\PagesFunctionTemplatePlugin
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Nov 2011 13:40:38 +0000 (14:40 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Nov 2011 13:40:38 +0000 (14:40 +0100)
The `wcf\system\request\RouteHandler::buildRoute()` method wasn't called correctly.

wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php

index 0f0358b16c79a73aa55a91c77533af3fdc874cb2..7dd2a744645184e3d849f9d1a164245476a27468 100644 (file)
@@ -84,7 +84,7 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin {
                        // create and encode route link
                        $routeComponents = array('controller' => $tagArgs['controller']);
                        if (isset($tagArgs['id'])) $routeComponents['id'] = $tagArgs['id'];
-                       $routeURL = RouteHandler::getInstance()->buildRoute($tagArgs['controller'], $routeComponents);
+                       $routeURL = RouteHandler::getInstance()->buildRoute($routeComponents);
                        $tagArgs['link'] = StringUtil::encodeHTML($routeURL . $tagArgs['link']);
                
                        if (!isset($tagArgs['page'])) {