Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/97145


Change subject: Avoid fatals in Special:History
......................................................................

Avoid fatals in Special:History

Bug: 57392
Change-Id: Ia0a612af3ff51c905eda8d9dbcbbefa10ee09fa6
---
M includes/specials/SpecialHistory.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/45/97145/1

diff --git a/includes/specials/SpecialHistory.php 
b/includes/specials/SpecialHistory.php
index 795f53c..ee09e12 100644
--- a/includes/specials/SpecialHistory.php
+++ b/includes/specials/SpecialHistory.php
@@ -33,6 +33,8 @@
                        } else {
                                wfHttpError( 404, $this->msg( 
'mobile-frontend-history-404-title' )->text(),
                                        $this->msg( 
'mobile-frontend-history-404-desc' )->text() );
+                               // Stop the query from running
+                               return;
                        }
                }
                $res = $this->doQuery();

-- 
To view, visit https://gerrit.wikimedia.org/r/97145
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0a612af3ff51c905eda8d9dbcbbefa10ee09fa6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to