Merge "fix bug 41043, return false on edit page form when section is invalid"
authorReedy <reedy@wikimedia.org>
Mon, 15 Oct 2012 23:40:57 +0000 (23:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 15 Oct 2012 23:40:57 +0000 (23:40 +0000)
includes/EditPage.php

index cc41b02..4a1e517 100644 (file)
@@ -776,6 +776,9 @@ class EditPage {
                $this->edittime = $this->mArticle->getTimestamp();
 
                $content = $this->getContentObject( false ); #TODO: track content object?!
+               if ( $content === false ) {
+                       return false;
+               }
                $this->textbox1 = $this->toEditText( $content );
 
                // activate checkboxes if user wants them to be always active