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:
f59321b
)
Fix E_STRICT reported on r86273 CR.
author
Happy-melon
<happy-melon@users.mediawiki.org>
Sat, 7 May 2011 15:28:55 +0000
(15:28 +0000)
committer
Happy-melon
<happy-melon@users.mediawiki.org>
Sat, 7 May 2011 15:28:55 +0000
(15:28 +0000)
includes/api/ApiPurge.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiPurge.php
b/includes/api/ApiPurge.php
index
378c218
..
6f2635f
100644
(file)
--- a/
includes/api/ApiPurge.php
+++ b/
includes/api/ApiPurge.php
@@
-68,7
+68,8
@@
class ApiPurge extends ApiBase {
$result[] = $r;
continue;
}
- $article = MediaWiki::articleFromTitle( $title, RequestContext::getMain() );
+ $context = RequestContext::getMain();
+ $article = MediaWiki::articleFromTitle( $title, $context );
$article->doPurge(); // Directly purge and skip the UI part of purge().
$r['purged'] = '';