app/code/community/Nexcessnet/Turpentine/Block/Core/Messages.php
protected function _toHtml() {
        if ($this->_fixMessages()) {
            if ($this->_shouldUseInjection()) {
                $html = $this->renderView();
            } else {
                $this->_loadMessages();
                $this->_loadSavedMessages();
                if (count($this->getMessages())) {
                    $html = $this->_real_toHtml();
                } else {
                    // Prevent returning an empty <ul></ul>
                    $html = '';
                }
            }
        } else {
            $html = $this->_real_toHtml();
        }
        $this->_directCall = false;
        return $html;
    }
protected function _toHtml() {
        if ($this->_fixMessages()) {
            if ($this->_shouldUseInjection()) {
                $html = $this->renderView();
            } else {
                $this->_loadMessages();
                $this->_loadSavedMessages();
                if (count($this->getMessages())) {
                    $html = $this->_real_toHtml();
                } else {
                    // Prevent returning an empty <ul></ul>
                    $html = '';
                }
            }
        } else {
            $html = $this->_real_toHtml();
        }
        $this->_directCall = false;
        return $html;
    }
protected function _toHtml ( ) { if ( $ this -> _fixMessages ( ) ) { if ( $ this -> _shouldUseInjection ( ) ) { $ html = $ this -> renderView ( ) ; } else { $ this -> _loadMessages ( ) ; $ this -> _loadSavedMessages ( ) ; if ( count ( $ this -> getMessages ( ) ) ) { $ html = $ this -> _real_toHtml ( ) ; } else { // Prevent returning an empty <ul></ul> $ html = '' ; } } } else { $ html = $ this -> _real_toHtml ( ) ; } $ this -> _directCall = false ; return $ html ; }
Render the messages block

@return string
Render the messages block