Revision:getId() not getID()
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 22 May 2008 15:02:33 +0000 (15:02 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 22 May 2008 15:02:33 +0000 (15:02 +0000)
includes/Article.php
includes/SpecialMergeHistory.php
includes/SpecialRevisiondelete.php

index dedf4e7..82cf979 100644 (file)
@@ -438,7 +438,7 @@ class Article {
                $this->mComment   = $revision->getComment();
                $this->mTimestamp = wfTimestamp( TS_MW, $revision->getTimestamp() );
 
-               $this->mRevIdFetched = $revision->getID();
+               $this->mRevIdFetched = $revision->getId();
                $this->mContentLoaded = true;
                $this->mRevision =& $revision;
 
@@ -590,7 +590,7 @@ class Article {
                        $this->mTimestamp = $this->mLastRevision->getTimestamp();
                        $this->mComment   = $this->mLastRevision->getComment();
                        $this->mMinorEdit = $this->mLastRevision->isMinor();
-                       $this->mRevIdFetched = $this->mLastRevision->getID();
+                       $this->mRevIdFetched = $this->mLastRevision->getId();
                }
        }
 
index f891f0e..6183374 100644 (file)
@@ -232,7 +232,7 @@ class MergehistoryForm {
                $checkBox = wfRadio( "mergepoint", $ts, false );
 
                $pageLink = $this->sk->makeKnownLinkObj( $rev->getTitle(),
-                       htmlspecialchars( $wgLang->timeanddate( $ts ) ), 'oldid=' . $rev->getID() );
+                       htmlspecialchars( $wgLang->timeanddate( $ts ) ), 'oldid=' . $rev->getId() );
                if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
                        $pageLink = '<span class="history-deleted">' . $pageLink . '</span>';
                }
index e0a087a..337fffd 100644 (file)
@@ -272,7 +272,7 @@ class RevisionDeleteForm {
                );
                if( $this->deleteKey=='oldid' ) {
                        foreach( $revObjs as $rev )
-                               $hidden[] = wfHidden( 'oldid[]', $rev->getID() );
+                               $hidden[] = wfHidden( 'oldid[]', $rev->getId() );
                } else {
                        foreach( $revObjs as $rev )
                                $hidden[] = wfHidden( 'artimestamp[]', $rev->getTimestamp() );
@@ -1287,7 +1287,7 @@ class RevisionDeleter {
        function updateArchFiles( $file, $bitfield ) {
                $this->dbw->update( 'filearchive',
                        array( 'fa_deleted' => $bitfield ),
-                       array( 'fa_id' => $file->getID() ),
+                       array( 'fa_id' => $file->getId() ),
                        __METHOD__ );
        }