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:
d585f0a
)
Followup to r69587: forgot to hit Save *facepalm*
author
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 20 Jul 2010 09:26:56 +0000
(09:26 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 20 Jul 2010 09:26:56 +0000
(09:26 +0000)
includes/api/ApiPageSet.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiPageSet.php
b/includes/api/ApiPageSet.php
index
ada8543
..
a24a75f
100644
(file)
--- a/
includes/api/ApiPageSet.php
+++ b/
includes/api/ApiPageSet.php
@@
-677,8
+677,8
@@
class ApiPageSet extends ApiQueryBase {
global $wgContLang;
if ( $this->mConvertTitles &&
count( $wgContLang->getVariants() ) > 1 &&
-
$titleObj->getArticleID() == 0
) {
- // Language::findVariantLink will modify titleObj into
+
!$titleObj->exists()
) {
+ // Language::findVariantLink will modify titleObj into
// the canonical variant if possible
$wgContLang->findVariantLink( $title, $titleObj );
$titleWasConverted = $unconvertedTitle !== $titleObj->getPrefixedText();