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:
bbfcb11
)
* Normalise also special page names (in addition to namespace)
author
Niklas Laxström
<nikerabbit@users.mediawiki.org>
Sat, 10 May 2008 15:14:39 +0000
(15:14 +0000)
committer
Niklas Laxström
<nikerabbit@users.mediawiki.org>
Sat, 10 May 2008 15:14:39 +0000
(15:14 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
9dc3b4e
..
0c31074
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-2179,6
+2179,13
@@
class Title {
return false;
}
+ // Normalise special page names
+ if ( $this->mNamespace == NS_SPECIAL ) {
+ list( $name, $subpage ) = SpecialPage::resolveAliasWithSubpage( $dbkey );
+ $dbkey = SpecialPage::getLocalNameFor( $name, $subpage );
+ }
+
+
# Fill fields
$this->mDbkeyform = $dbkey;
$this->mUrlform = wfUrlencode( $dbkey );