Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5023
HistoryAction.php.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 10:16 PM
2014-11-21 22:16:58 (UTC+0)
Size
546 B
Referenced Files
None
Subscribers
None
HistoryAction.php.diff
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4586
Default Alt Text
HistoryAction.php.diff (546 B)
Attached To
Mode
T17853: Spurious RSS updates for non-existent pages
Attached
Detach File
Event Timeline
Log In to Comment