X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FupdateCollation.php;h=964b3138d78be277193400ab292999b513844d3a;hb=f3b38123cbd8ac70dcdcbbd5489c588038fc317e;hp=a76a1ee69aa35580ab0f64df0c7850382d861229;hpb=2772d8c1a6250507e699930fc8e030e58d345e23;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php index a76a1ee69a..964b3138d7 100644 --- a/maintenance/updateCollation.php +++ b/maintenance/updateCollation.php @@ -26,7 +26,7 @@ #$optionsWithArgs = array( 'begin', 'max-slave-lag' ); -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that will find all rows in the categorylinks table @@ -82,6 +82,10 @@ TEXT; $collation = Collation::singleton(); } + // Collation sanity check: in some cases the constructor will work, + // but this will raise an exception, breaking all category pages + $collation->getFirstLetter( 'MediaWiki' ); + $options = array( 'LIMIT' => self::BATCH_SIZE, 'ORDER BY' => 'cl_to, cl_type, cl_from', @@ -303,4 +307,4 @@ TEXT; } $maintClass = "UpdateCollation"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;