Index: branches/wmf/1.18wmf1/includes/api/ApiQueryRevisions.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | if ( !$difftoRev ) { |
138 | 138 | $this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) ); |
139 | 139 | } |
140 | | - if ( !$difftoRev->userCan( Revision::DELETED_TEXT ) ) { |
| 140 | + if ( $difftoRev->isDeleted( Revision::DELETED_TEXT ) ) { |
141 | 141 | $this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" ); |
142 | 142 | $params['diffto'] = null; |
143 | 143 | } |