Fix incorrect handling of PreferShortTitles option.

This commit is contained in:
Daniel Kraus
2012-10-05 18:31:35 +02:00
parent 38a7cd2e16
commit b704c3187e
3 changed files with 5 additions and 2 deletions

View File

@ -80,7 +80,7 @@
// extract the current page's title.
$myTitle = $article->getTitle()->getText();
( $wgLinkTitlesPreferShortTitles ) ? $sort_order = 'DESC' : $sort_order = '';
( $wgLinkTitlesPreferShortTitles ) ? $sort_order = 'ASC' : $sort_order = 'DESC';
// Build a regular expression that will capture existing wiki links ("[[...]]"),
// wiki headings ("= ... =", "== ... ==" etc.),