X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=775fa7bed41c2ae837b58bb80c123c3d9671243c;hb=3198421632712b2a389eec5f222fd1c344ea74fc;hp=ed8dfa9dfca340eeb5faccb179e53d770cd6faf4;hpb=16f1acae07c4587e7ec22061bc242114712fcf34;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index ed8dfa9dfc..775fa7bed4 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -83,6 +83,13 @@ class UpdateMediaWiki extends Maintenance { "ABORTING (see https://bugs.php.net/bug.php?id=45996).\n", true ); } + + if ( !function_exists( 'mb_strlen' ) ) { + $this->error( + "MediaWiki now requires the mbstring PHP extension, your system doesn't have it.\n" + . "ABORTING.\n", + true ); + } } function execute() { @@ -127,7 +134,7 @@ class UpdateMediaWiki extends Maintenance { $this->compatChecks(); } else { $this->output( "Skipping compatibility checks, proceed at your own risk (Ctrl+C to abort)\n" ); - wfCountdown( 5 ); + wfCountDown( 5 ); } // Check external dependencies are up to date @@ -168,7 +175,7 @@ class UpdateMediaWiki extends Maintenance { $updates[] = 'stats'; } - $updater = DatabaseUpdater::newForDb( $db, $shared, $this ); + $updater = DatabaseUpdater::newForDB( $db, $shared, $this ); $updater->doUpdates( $updates ); foreach ( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {