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

Fixed XenForo Frontcontroller

Discussion in 'Resolved Bug Reports' started by xf_phantom, Apr 15, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    In the Frontcontroller you're using
    public function setRequestPaths()
    $requestPaths XenForo_Application::getRequestPaths($this->_request);
    Shouldn't this be XenForo_Application::getInstance()->loadRequestPaths() ?
    I'm NOT 100% sure;)
    What i wanted to achieve is to overwrite the requestPaths with an event listener on init_dependencies

    It ended now with a own frontcontroller, but it's still strange that it's not using XenForo_Application::get('requestPaths');
  2. Mike

    Mike XenForo Developer Staff Member

    I think it was doing that to use the correct request object (rather than a new, non-injectable one). I've changed it so it will only run if the paths haven't been setup yet.
    xf_phantom likes this.

Share This Page