From: Matthias Schmidt Date: Sat, 5 Nov 2011 13:40:38 +0000 (+0100) Subject: Fixes bug in wcf\system\template\plugin\PagesFunctionTemplatePlugin X-Git-Tag: 2.0.0_Beta_1~1616^2~7^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e01ffdb7a30c6cb6666ddd96a0e71964c8adbd8;p=GitHub%2FWoltLab%2FWCF.git Fixes bug in wcf\system\template\plugin\PagesFunctionTemplatePlugin The `wcf\system\request\RouteHandler::buildRoute()` method wasn't called correctly. --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php index 0f0358b16c..7dd2a74464 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php @@ -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'])) {