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

Not a Bug XenForo_ControllerPublic_Post::actionReport

Discussion in 'Resolved Bug Reports' started by Fuhrmann, Dec 6, 2011.

  1. Fuhrmann

    Fuhrmann Well-Known Member

    if ($this->_request->isPost())
    $message $this->_input->filterSingle('message'XenForo_Input::STRING);
                if (!
    $this->responseError(new XenForo_Phrase('please_enter_reason_for_reporting_this_message'));
    /* @var $reportModel XenForo_Model_Report */
    $reportModel XenForo_Model::create('XenForo_Model_Report');

    The create model process should'nt be :

  2. Mike

    Mike XenForo Developer Staff Member

    In this instance, there isn't really a difference as it wouldn't be in the cache anyway. Strictly speaking, both approaches are valid and in theory you could intentionally use one over the other in particular situations.
    Fuhrmann likes this.

Share This Page