Tpt has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/394770 )
Change subject: Do not fail if no image is built from the Page: page name
......................................................................
Do not fail if no image is built from the Page: page name
Bug: T181868
Change-Id: Id59366c391ac8e573af667cd5acdee17c6d5c628
---
M includes/page/DatabaseIndexForPageLookup.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage
refs/changes/70/394770/1
diff --git a/includes/page/DatabaseIndexForPageLookup.php
b/includes/page/DatabaseIndexForPageLookup.php
index e71a3c2..7f2163e 100644
--- a/includes/page/DatabaseIndexForPageLookup.php
+++ b/includes/page/DatabaseIndexForPageLookup.php
@@ -75,7 +75,7 @@
if ( $imageTitle !== null ) {
$image = $this->repoGroup->findFile(
$imageTitle );
// if it is multipage, we use the page order of
the file
- if ( $image->exists() && $image->isMultipage()
) {
+ if ( $image !== false && $image->exists() &&
$image->isMultipage() ) {
return Title::makeTitle(
$this->indexNamespaceId,
$image->getTitle()->getText()
);
--
To view, visit https://gerrit.wikimedia.org/r/394770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id59366c391ac8e573af667cd5acdee17c6d5c628
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits