Skip to content
Snippets Groups Projects
Commit ae56bb63 authored by Marvin Thomas Rabe's avatar Marvin Thomas Rabe
Browse files

Merge commit 'refs/merge-requests/52' of git://gitorious.org/owncloud/owncloud...

Merge commit 'refs/merge-requests/52' of git://gitorious.org/owncloud/owncloud into merge-requests/52
parents 543e8456 0cde2a31
Branches
No related tags found
No related merge requests found
......@@ -30,8 +30,9 @@ if ($source !== false) {
foreach (OC_Files::getdirectorycontent($source) as $i) {
$i['date'] = OC_Util::formatDate($i['mtime'] );
if ($i['type'] == 'file') {
$i['extention'] = substr($i['name'], strrpos($i['name'], "."));
$i['basename'] = substr($i['name'], 0, strrpos($i['name'], "."));
$fileinfo = pathinfo($i['name']);
$i['basename'] = $fileinfo['filename'];
$i['extention'] = isset($fileinfo['extension']) ? ('.'.$fileinfo['extension']) : '';
}
$i['directory'] = substr($i['directory'], $rootLength);
if ($i['directory'] == "/") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment