r80947 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80946‎ | r80947 | r80948 >
Date:00:27, 25 January 2011
Author:catrope
Status:ok (Comments)
Tags:
Comment:
1.16wmf4: Commit live hack: throw exception when text couldn't be loaded from archive table
Modified paths:
  • /branches/wmf/1.16wmf4/includes/Revision.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/Revision.php
@@ -82,6 +82,9 @@
8383 if ( isset( $row->ar_text ) && !$row->ar_text_id ) {
8484 // Pre-1.5 ar_text row
8585 $attribs['text'] = self::getRevisionText( $row, 'ar_' );
 86+ if ( $attribs['text'] === false ) {
 87+ throw new MWException( 'Unable to load text from archive row (possibly bug 22624)' );
 88+ }
8689 }
8790 return new self( $attribs );
8891 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r81412Merge r80947 from 1.16wmf4 to trunk: throw exception when text couldn't be lo...catrope20:25, 2 February 2011
r814131.17: MFT r78395, r79968, r81311, r81313, r81349, r81352, r81376, r81389, r81...catrope20:45, 2 February 2011

Comments

#Comment by Bryan (talk | contribs)   15:36, 25 January 2011

This one is probably useful for others as well; marking trunk & 1.17

Status & tagging log