• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to override XenForo/Router::resolveActionAsPageNumber

Marcus

Well-known member
#1
Do you know how I could override this function? The idea is to replace "page5" with "pagina5" in the links
PHP:
    public function resolveActionAsPageNumber($action, Zend_Controller_Request_Http $request)
    {
        if (preg_match('#^pagina-(\d+)$#i', $action, $match))
        {
            $action = '';
            $request->setParam('page', $match[1]);
        }

        return $action;
    }