dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1b85568
)
Merge "Avoid unstubbing $wgLang in Title::getLocalURL"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Mon, 16 May 2016 17:29:52 +0000
(17:29 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 16 May 2016 17:29:52 +0000
(17:29 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
876afe6
..
25fbce3
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1713,9
+1713,9
@@
class Title implements LinkTarget {
if ( $url === false
&& $wgVariantArticlePath
+ && preg_match( '/^variant=([^&]*)$/', $query, $matches )
&& $wgContLang->getCode() === $this->getPageLanguage()->getCode()
&& $this->getPageLanguage()->hasVariants()
- && preg_match( '/^variant=([^&]*)$/', $query, $matches )
) {
$variant = urldecode( $matches[1] );
if ( $this->getPageLanguage()->hasVariant( $variant ) ) {