r87428 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87427‎ | r87428 | r87429 >
Date:18:34, 4 May 2011
Author:nelson
Status:ok
Tags:
Comment:
No current need for an alias to getPath()
Modified paths:
  • /trunk/phase3/includes/filerepo/File.php (modified) (history)
  • /trunk/phase3/maintenance/dumpUploads.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/dumpUploads.php
@@ -104,7 +104,7 @@
105105 function outputItem( $name, $shared ) {
106106 $file = wfFindFile( $name );
107107 if ( $file && $this->filterItem( $file, $shared ) ) {
108 - $filename = $file->getFullPath();
 108+ $filename = $file->getPath();
109109 $rel = wfRelativePath( $filename, $this->mBasePath );
110110 $this->output( "$rel\n" );
111111 } else {
Index: trunk/phase3/includes/filerepo/File.php
@@ -240,8 +240,11 @@
241241
242242 /**
243243 * Alias for getPath()
 244+ *
 245+ * @deprecated Use getPath().
244246 */
245247 public function getFullPath() {
 248+ wfDeprecated( __METHOD__ );
246249 return $this->getPath();
247250 }
248251

Status & tagging log