Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | if ( !$difftoRev ) { |
133 | 133 | $this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) ); |
134 | 134 | } |
135 | | - if ( !$difftoRev->userCan( Revision::DELETED_TEXT ) ) { |
| 135 | + if ( $difftoRev->isDeleted( Revision::DELETED_TEXT ) ) { |
136 | 136 | $this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" ); |
137 | 137 | $params['diffto'] = null; |
138 | 138 | } |