dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3403015
)
(bug 46615) updateCollation.php: sanity check the collation before proceeding
author
MatmaRex
<matma.rex@gmail.com>
Wed, 27 Mar 2013 20:16:57 +0000
(21:16 +0100)
committer
MatmaRex
<matma.rex@gmail.com>
Wed, 27 Mar 2013 20:16:57 +0000
(21:16 +0100)
Change-Id: I5be1b1ec1823fdb7438c3f501fb6194142c1e9dc
maintenance/updateCollation.php
patch
|
blob
|
history
diff --git
a/maintenance/updateCollation.php
b/maintenance/updateCollation.php
index
a76a1ee
..
8118f68
100644
(file)
--- a/
maintenance/updateCollation.php
+++ b/
maintenance/updateCollation.php
@@
-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->getFirstLetterData();
+
$options = array(
'LIMIT' => self::BATCH_SIZE,
'ORDER BY' => 'cl_to, cl_type, cl_from',