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:
448bfe8
)
Try to find variant article when an incomming request leads to a non-existent article.
author
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Fri, 8 Apr 2005 18:03:51 +0000
(18:03 +0000)
committer
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Fri, 8 Apr 2005 18:03:51 +0000
(18:03 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
dde287b
..
b3b3231
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-81,6
+81,12
@@
if ( '' == $title && 'delete' != $action ) {
$wgTitle = Title::newFromID( $curid );
} else {
$wgTitle = Title::newFromURL( $title );
+ /* check variant links so that interwiki links don't have to worry about
+ the possible different language variants
+ */
+ if( $wgTitle->getArticleID() == 0 )
+ $wgContLang->findVariantLink( $title, $wgTitle );
+
}
wfProfileOut( 'main-misc-setup' );