* This works via throwing an exception. Ideally, a deeper fix can be
made so the exception stops getting triggered anymore.
Change-Id: Ie6a11016be9f9e5a76e2f6f369bc3aac42d78c2d
wfProfileOut( __METHOD__ );
return $status;
+ } elseif ( $oldtext === false ) {
+ # Sanity check for bug 37225
+ wfProfileOut( __METHOD__ );
+ throw new MWException( "Could not find text for current revision {$oldid}." );
}
$revision = new Revision( array(