diff options
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r-- | lib/class/song.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php index b4541cf5..806a81f9 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -192,8 +192,8 @@ class Song extends database_object { $this->type = $override; } else { - preg_match('/\.([A-Za-z0-9]+)$/', $this->file,$results); - $this->type = strtolower($results['1']); + $data = pathinfo($this->file); + $this->type = strtolower($data['extension']); } switch ($this->type) { |