From 7e01ffdb7a30c6cb6666ddd96a0e71964c8adbd8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 5 Nov 2011 14:40:38 +0100 Subject: [PATCH] Fixes bug in wcf\system\template\plugin\PagesFunctionTemplatePlugin The `wcf\system\request\RouteHandler::buildRoute()` method wasn't called correctly. --- .../template/plugin/PagesFunctionTemplatePlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) { -- 2.20.1