Merge r80947 from 1.16wmf4 to trunk: throw exception when text couldn't be loaded...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Feb 2011 20:25:47 +0000 (20:25 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Feb 2011 20:25:47 +0000 (20:25 +0000)
includes/Revision.php

index 8096603..9cc4935 100644 (file)
@@ -82,6 +82,9 @@ class Revision {
                if ( isset( $row->ar_text ) && !$row->ar_text_id ) {
                        // Pre-1.5 ar_text row
                        $attribs['text'] = self::getRevisionText( $row, 'ar_' );
+                       if ( $attribs['text'] === false ) {
+                               throw new MWException( 'Unable to load text from archive row (possibly bug 22624)' );
+                       }
                }
                return new self( $attribs );
        }