Fixed XF\Mvc\Router::buildLink has different signature than XF\Mvc\Controller::buildLink

DragonByte Tech

Well-known member
Affected version
2.2.6
XF\Mvc\Router::buildLink: public function buildLink($link, $data = null, array $parameters = [], $hash = null)
XF\Mvc\Controller::buildLink: public function buildLink($link, $data = null, array $parameters = [])

The $hash parameter should be added for consistency and in order to facilitate the same feature set without needing to manually call the router.
 
Top Bottom