How to override XenForo/Router::resolveActionAsPageNumber

Marcus

Well-known member
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;
    }
 
Back
Top Bottom