No current need for an alias to getPath()
authorRuss Nelson <nelson@users.mediawiki.org>
Wed, 4 May 2011 18:34:50 +0000 (18:34 +0000)
committerRuss Nelson <nelson@users.mediawiki.org>
Wed, 4 May 2011 18:34:50 +0000 (18:34 +0000)
includes/filerepo/File.php
maintenance/dumpUploads.php

index 8c79939..4e743c2 100644 (file)
@@ -240,8 +240,11 @@ abstract class File {
 
        /**
        * Alias for getPath()
+       *
+       * @deprecated Use getPath().
        */
        public function getFullPath() {
+               wfDeprecated( __METHOD__ );
                return $this->getPath();
        }
 
index 74c0cb0..919bb4d 100644 (file)
@@ -104,7 +104,7 @@ By default, outputs relative paths against the parent directory of \$wgUploadDir
        function outputItem( $name, $shared ) {
                $file = wfFindFile( $name );
                if ( $file && $this->filterItem( $file, $shared ) ) {
-                       $filename = $file->getFullPath();
+                       $filename = $file->getPath();
                        $rel = wfRelativePath( $filename, $this->mBasePath );
                        $this->output( "$rel\n" );
                } else {