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:
a9622fd
)
Avoid fatal error with FlaggedRevs when running rebuildFileCache.php
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 18 Jan 2017 06:10:03 +0000
(22:10 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 18 Jan 2017 06:10:03 +0000
(22:10 -0800)
Change-Id: I8d335c64cfc74a227528fbd85d333eaaa8157f41
maintenance/rebuildFileCache.php
patch
|
blob
|
history
diff --git
a/maintenance/rebuildFileCache.php
b/maintenance/rebuildFileCache.php
index
da8a6bc
..
d073282
100644
(file)
--- a/
maintenance/rebuildFileCache.php
+++ b/
maintenance/rebuildFileCache.php
@@
-122,6
+122,9
@@
class RebuildFileCache extends Maintenance {
$article = Article::newFromTitle( $title, $context );
$context->setWikiPage( $article->getPage() );
+ // Some extensions like FlaggedRevs while error out if this is unset
+ RequestContext::getMain()->setTitle( $title );
+
// If the article is cacheable, then load it
if ( $article->isFileCacheable( HTMLFileCache::MODE_REBUILD ) ) {
$viewCache = new HTMLFileCache( $title, 'view' );