protected function _actionRestore($context)
    {
        $revision = $this->getItem();
        $article = $revision->article;
        $article->restore($revision);

        $msg = AnTranslator::sprintf('COM-ARTICLES-ARTICLE-REVISIONS-RESTORATION-CONFIRMATION', $revision->revisionNum);
        $context->response->setRedirect($article->getURL().'&layout=edit', $msg);
    }
protected function _actionRestore($context)
    {
        $revision = $this->getItem();
        $article = $revision->article;
        $article->restore($revision);

        $msg = AnTranslator::sprintf('COM-ARTICLES-ARTICLE-REVISIONS-RESTORATION-CONFIRMATION', $revision->revisionNum);
        $context->response->setRedirect($article->getURL().'&layout=edit', $msg);
    }
protected function _actionRestore ( $ context ) { $ revision = $ this -> getItem ( ) ; $ article = $ revision -> article ; $ article -> restore ( $ revision ) ; $ msg = AnTranslator :: sprintf ( 'COM-ARTICLES-ARTICLE-REVISIONS-RESTORATION-CONFIRMATION' , $ revision -> revisionNum ) ; $ context -> response -> setRedirect ( $ article -> getURL ( ) . '&layout=edit' , $ msg ) ; }
Restores an article back to a revision.

@param AnCommandContext $context Context paramter
Restores an article back to a revision .