• 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


Well-known member
Do you know how I could override this function? The idea is to replace "page5" with "pagina5" in the links
    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;