dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "RevisionStore::newRevisionFromBatch should use Title::newFromRow"
[lhc/web/wiklou.git]
/
includes
/
page
/
WikiFilePage.php
diff --git
a/includes/page/WikiFilePage.php
b/includes/page/WikiFilePage.php
index
013dd75
..
fd9f7b2
100644
(file)
--- a/
includes/page/WikiFilePage.php
+++ b/
includes/page/WikiFilePage.php
@@
-29,13
+29,13
@@
use Wikimedia\Rdbms\FakeResultWrapper;
* @ingroup Media
*/
class WikiFilePage extends WikiPage {
* @ingroup Media
*/
class WikiFilePage extends WikiPage {
- /** @var File */
+ /** @var File
|false
*/
protected $mFile = false;
protected $mFile = false;
- /** @var LocalRepo */
+ /** @var LocalRepo
|null
*/
protected $mRepo = null;
/** @var bool */
protected $mFileLoaded = false;
protected $mRepo = null;
/** @var bool */
protected $mFileLoaded = false;
- /** @var array */
+ /** @var array
|null
*/
protected $mDupes = null;
public function __construct( $title ) {
protected $mDupes = null;
public function __construct( $title ) {
@@
-176,9
+176,12
@@
class WikiFilePage extends WikiPage {
if ( $this->mFile->exists() ) {
wfDebug( 'ImagePage::doPurge purging ' . $this->mFile->getName() . "\n" );
if ( $this->mFile->exists() ) {
wfDebug( 'ImagePage::doPurge purging ' . $this->mFile->getName() . "\n" );
- DeferredUpdates::addUpdate(
- new HTMLCacheUpdate( $this->mTitle, 'imagelinks', 'file-purge' )
+ $job = HTMLCacheUpdateJob::newForBacklinks(
+ $this->mTitle,
+ 'imagelinks',
+ [ 'causeAction' => 'file-purge' ]
);
);
+ JobQueueGroup::singleton()->lazyPush( $job );
} else {
wfDebug( 'ImagePage::doPurge no image for '
. $this->mFile->getName() . "; limiting purge to cache only\n" );
} else {
wfDebug( 'ImagePage::doPurge no image for '
. $this->mFile->getName() . "; limiting purge to cache only\n" );