Page MenuHomePhabricator

HistoryAction.php.diff

Authored By
bzimport
Nov 21 2014, 10:16 PM
Size
546 B
Referenced Files
None
Subscribers
None

HistoryAction.php.diff

Index: includes/actions/HistoryAction.php
===================================================================
--- includes/actions/HistoryAction.php (revision 104960)
+++ includes/actions/HistoryAction.php (working copy)
@@ -196,6 +196,11 @@
* @return ResultWrapper
*/
function fetchRevisions( $limit, $offset, $direction ) {
+ // Fail if article doesn't exist.
+ if( !$this->getTitle()->exists() ) {
+ return new FakeResultWrapper( array() );
+ }
+
$dbr = wfGetDB( DB_SLAVE );
if ( $direction == HistoryPage::DIR_PREV ) {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4586
Default Alt Text
HistoryAction.php.diff (546 B)

Event Timeline