Skip to content

Commit

Permalink
Update file.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mavik committed Sep 24, 2016
1 parent bbb7a9e commit 7c236a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/joomla/filesystem/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ class JFile
*
* @param string $file The file name
*
* @return string The file extension
* @return string | boolean The file extension or false if file does not have extension
*
* @since 11.1
*/
public static function getExt($file)
{
$dot = strrpos($file, '.');
if ($dot === false) {
if ($dot === false)
{
return false;
}
return (string) substr($file, $dot + 1);
Expand Down

0 comments on commit 7c236a4

Please sign in to comment.