Index: branches/extensionless-files/includes/filerepo/File.php |
— | — | @@ -91,11 +91,11 @@ |
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
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") |
97 | 97 | * |
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 |
100 | 100 | */ |
101 | 101 | function getNormalizedExtensionFromName( $name ) { |
102 | 102 | $n = strrpos( $name, '.' ); |