* Fix for r81960: List the local magic word synonyms first, so that they will be...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 16 Feb 2011 07:24:36 +0000 (07:24 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 16 Feb 2011 07:24:36 +0000 (07:24 +0000)
commit3bc410efa7f58b0cf148ba4440260e04e31d0086
treebd7939f27f4b1d007af46c4768863642a959e4b3
parent33e5eadafb81e729fc4c851cfdafca647317a14a
* Fix for r81960: List the local magic word synonyms first, so that they will be returned by $magic->getSynonym( 0 ). Apply array_values() to fix up the keys, potentially corrupted by array_unique().
* In MagicWord::initRegex(), put the longest synonyms first in the alternation. This means that when one synonym is an initial substring of another, the longest one will match in precedence, which is generally in line with user expectations.
includes/LocalisationCache.php
includes/MagicWord.php