r60807 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60806‎ | r60807 | r60808 >
Date:20:52, 7 January 2010
Author:robla
Status:ok
Tags:
Comment:
followup to r60770: getNormalizedExtensionFromName documentation fix
Modified paths:
  • /branches/extensionless-files/includes/filerepo/File.php (modified) (history)

Diff [purge]

Index: branches/extensionless-files/includes/filerepo/File.php
@@ -91,11 +91,11 @@
9292 }
9393
9494 /**
95 - * Given a file name, normalize its extension extension to the common form,
96 - * and ensure it's clean.
 95+ * Given a file name, return the normalized extension. (e.g. for
 96+ * "foo.JPeG", return "jpg")
9797 *
98 - * @param $ext string (without the .)
99 - * @return string
 98+ * @param $name string File name to pull extension from
 99+ * @return string The extension from the file name
100100 */
101101 function getNormalizedExtensionFromName( $name ) {
102102 $n = strrpos( $name, '.' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60770New functions: getPreferredExtensionForType and getNormalizedExtensionFromNamerobla07:07, 7 January 2010

Status & tagging log