Added wfTransactionalTimeLimit() method and applied it
[lhc/web/wiklou.git] / includes / actions / RevertAction.php
index 6481630..c7f3346 100644 (file)
@@ -107,6 +107,8 @@ class RevertAction extends FormAction {
        }
 
        public function onSubmit( $data ) {
+               $this->useTransactionalTimeLimit();
+
                $source = $this->page->getFile()->getArchiveVirtualUrl(
                        $this->getRequest()->getText( 'oldimage' )
                );
@@ -144,8 +146,6 @@ class RevertAction extends FormAction {
        }
 
        protected function getDescription() {
-               $this->getOutput()->addBacklinkSubtitle( $this->getTitle() );
-
-               return '';
+               return OutputPage::buildBacklinkSubtitle( $this->getTitle() );
        }
 }