dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df8a6f
)
Merge r80947 from 1.16wmf4 to trunk: throw exception when text couldn't be loaded...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 2 Feb 2011 20:25:47 +0000
(20:25 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 2 Feb 2011 20:25:47 +0000
(20:25 +0000)
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
8096603
..
9cc4935
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-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 );
}