Fix typo in ApiQueryRevisions
authorKunal Mehta <legoktm@gmail.com>
Thu, 30 Jan 2014 19:36:53 +0000 (11:36 -0800)
committerReedy <reedy@wikimedia.org>
Thu, 30 Jan 2014 19:38:55 +0000 (19:38 +0000)
Bug: 60635
Change-Id: Icd04ad8e5faaa4cb49a84e2002c953ef9f436cc7

includes/api/ApiQueryRevisions.php

index bd5c512..65cb16d 100644 (file)
@@ -147,7 +147,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                                if ( !$difftoRev ) {
                                        $this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) );
                                }
-                               if ( !$diffToRev->userCan( Revision::DELETED_TEXT, $this->getUser() ) ) {
+                               if ( !$difftoRev->userCan( Revision::DELETED_TEXT, $this->getUser() ) ) {
                                        $this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" );
                                        $params['diffto'] = null;
                                }