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:
0f9b9d5
)
Revert "Purge Squid variant pages based on page language (not $wgContLang)" per CR...
author
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 3 Jun 2012 21:07:58 +0000
(21:07 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sun, 3 Jun 2012 21:07:58 +0000
(21:07 +0000)
This reverts commit
0f9b9d51443a7c2fa62deba0953ce69b388b7c76
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
e6af0ba
..
481f480
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-3284,14
+3284,16
@@
class Title {
* @return Array of String the URLs
*/
public function getSquidURLs() {
* @return Array of String the URLs
*/
public function getSquidURLs() {
+ global $wgContLang;
+
$urls = array(
$this->getInternalURL(),
$this->getInternalURL( 'action=history' )
);
$urls = array(
$this->getInternalURL(),
$this->getInternalURL( 'action=history' )
);
- $pageLang = $this->getPageLanguage();
- if ( $
page
Lang->hasVariants() ) {
- $variants = $
page
Lang->getVariants();
+ // purge variant urls as well
+ if ( $
wgCont
Lang->hasVariants() ) {
+ $variants = $
wgCont
Lang->getVariants();
foreach ( $variants as $vCode ) {
$urls[] = $this->getInternalURL( '', $vCode );
}
foreach ( $variants as $vCode ) {
$urls[] = $this->getInternalURL( '', $vCode );
}