From ccdd94dc84fe496963e75faac889321cfab46d33 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sun, 24 Apr 2016 19:17:16 -0700 Subject: [PATCH] Pass through errors creating the main page to the installer. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 3d1c8600bd..d747707ebe 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -1697,7 +1697,7 @@ abstract class Installer { wfMessage( 'mainpagedocfooter' )->inContentLanguage()->text() ); - $page->doEditContent( $content, + $status = $page->doEditContent( $content, '', EDIT_NEW, false, -- 2.20.1