Fix mbstring check in update.php
authorKevin Israel <pleasestand@live.com>
Fri, 8 Apr 2016 04:44:33 +0000 (00:44 -0400)
committerKevin Israel <pleasestand@live.com>
Fri, 8 Apr 2016 04:44:33 +0000 (00:44 -0400)
Maintenance::error() will not cause the script to exit unless the
$die argument, when cast as an integer, is greater than 0. Since
the default value is 0, specify a different one, as in the other
calls from within the same function.

Follows-up 943563062f0a6995.

Change-Id: I3af72b1cd87c63d7f57436866633e86c272e904f

maintenance/update.php

index e487449..775fa7b 100755 (executable)
@@ -87,7 +87,8 @@ class UpdateMediaWiki extends Maintenance {
                if ( !function_exists( 'mb_strlen' ) ) {
                        $this->error(
                                "MediaWiki now requires the mbstring PHP extension, your system doesn't have it.\n"
-                               . "ABORTING.\n" );
+                               . "ABORTING.\n",
+                               true );
                }
        }