From f99f87832c67d9ddf45c5529e25cbc38c18a3541 Mon Sep 17 00:00:00 2001 From: Russ Nelson Date: Wed, 4 May 2011 18:34:50 +0000 Subject: [PATCH] No current need for an alias to getPath() --- includes/filerepo/File.php | 3 +++ maintenance/dumpUploads.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 8c7993962d..4e743c2396 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -240,8 +240,11 @@ abstract class File { /** * Alias for getPath() + * + * @deprecated Use getPath(). */ public function getFullPath() { + wfDeprecated( __METHOD__ ); return $this->getPath(); } diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 74c0cb0bc9..919bb4df93 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -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 { -- 2.20.1