]> git.quilime.com - plog.git/commitdiff
Updated com com
authorGabriel Dunne <gdunne@quilime.com>
Thu, 4 Jul 2013 04:57:24 +0000 (21:57 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Thu, 4 Jul 2013 04:57:24 +0000 (21:57 -0700)
lib/data.php

index 300eb1f0bd34e508d9ad250461c0f6a16c0032ec..e01b711bc8a0da3c6ffaa1e843b54be450172ca9 100644 (file)
@@ -382,7 +382,7 @@ function get_media( $path ) {
                         'url' => WEB_ROOT . join(DIRECTORY_SEPARATOR,  array(
                             $path,
                             $info->getFilename())),
-                        'extension' => $info->getExtension()
+                        'extension' => pathinfo($info->getFilename(), PATHINFO_EXTENSION)
                         );
                 }
             }