Matmarex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/56205


Change subject: (bug 46615) updateCollation.php: sanity check the collation 
before proceeding
......................................................................

(bug 46615) updateCollation.php: sanity check the collation before proceeding

Change-Id: I5be1b1ec1823fdb7438c3f501fb6194142c1e9dc
---
M maintenance/updateCollation.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/05/56205/1

diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php
index a76a1ee..8118f68 100644
--- a/maintenance/updateCollation.php
+++ b/maintenance/updateCollation.php
@@ -82,6 +82,10 @@
                        $collation = Collation::singleton();
                }
 
+               // Collation sanity check: in some cases the constructor will 
work,
+               // but this will raise an exception, breaking all category pages
+               $collation->getFirstLetterData();
+
                $options = array(
                        'LIMIT' => self::BATCH_SIZE,
                        'ORDER BY' => 'cl_to, cl_type, cl_from',

-- 
To view, visit https://gerrit.wikimedia.org/r/56205
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5be1b1ec1823fdb7438c3f501fb6194142c1e9dc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matmarex <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to