Marcus
Well-known member
I want to deactivate a function on a case by case basis. If a parameter comes up, the function should be disabled. Currently I can only disable the function by deactivating it completely:
The idea is here, that my virtual forums are accessed by &virtual_node_id (forums/5/&virtual_node_id=10 and ControllerPublic_Forum::actionForum will redirect with the above function whenever I manipulate node_id:
Is there a way in php to deactivate a function on a case by case basis?
PHP:
public function canonicalizeRequestUrl($linkUrl)
{
}
PHP:
$this->canonicalizeRequestUrl(
XenForo_Link::buildPublicLink('forums', $forum, array('page' => $page))
);