Pass through errors creating the main page to the installer.
authorRyan Schmidt <skizzerz@skizzerz.net>
Mon, 25 Apr 2016 02:17:16 +0000 (19:17 -0700)
committerRyan Schmidt <skizzerz@skizzerz.net>
Mon, 25 Apr 2016 02:19:04 +0000 (19:19 -0700)
Right now, any errors from inserting the main page are silently ignored by
the installer, causing it to report success even in case of failure. Let's
fix that.

Change-Id: I1da3aa076eefa212b5cc0f796a48f944e8c06fd2

includes/installer/Installer.php

index 3d1c860..d747707 100644 (file)
@@ -1697,7 +1697,7 @@ abstract class Installer {
                                wfMessage( 'mainpagedocfooter' )->inContentLanguage()->text()
                        );
 
-                       $page->doEditContent( $content,
+                       $status = $page->doEditContent( $content,
                                '',
                                EDIT_NEW,
                                false,