diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-06 23:00:36 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-06 23:00:36 +0200 |
commit | 1945cd694636def02a2b2d4fb36720b3f0aeeb10 (patch) | |
tree | ee041bce0aaa57f99a6680c2138c8fef00129869 /apps/files/ajax | |
parent | 5d55c709dddad44984446efa49ceb7084fc16b3f (diff) | |
download | nextcloud-server-1945cd694636def02a2b2d4fb36720b3f0aeeb10.tar.gz nextcloud-server-1945cd694636def02a2b2d4fb36720b3f0aeeb10.zip |
ported the oc_template class
Diffstat (limited to 'apps/files/ajax')
-rwxr-xr-x | apps/files/ajax/list.php | 4 | ||||
-rwxr-xr-x | apps/files/ajax/rawlist.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index 520e54e708d..ceb8d158580 100755 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -24,7 +24,7 @@ if($doBreadcrumb){ } } - $breadcrumbNav = new OC_Template( "files", "part.breadcrumb", "" ); + $breadcrumbNav = new OCP\Template( "files", "part.breadcrumb", "" ); $breadcrumbNav->assign( "breadcrumb", $breadcrumb ); $data['breadcrumb'] = $breadcrumbNav->fetchPage(); @@ -37,7 +37,7 @@ foreach( OC_Files::getdirectorycontent( $dir ) as $i ){ $files[] = $i; } -$list = new OC_Template( "files", "part.list", "" ); +$list = new OCP\Template( "files", "part.list", "" ); $list->assign( "files", $files ); $data = array('files' => $list->fetchPage()); diff --git a/apps/files/ajax/rawlist.php b/apps/files/ajax/rawlist.php index 36dd35cc73e..6e7ace91013 100755 --- a/apps/files/ajax/rawlist.php +++ b/apps/files/ajax/rawlist.php @@ -17,7 +17,7 @@ $mimetype = isset($_GET['mimetype']) ? $_GET['mimetype'] : ''; $files = array(); foreach( OC_Files::getdirectorycontent( $dir, $mimetype ) as $i ){ $i["date"] = OCP\Util::formatDate($i["mtime"] ); - $i['mimetype_icon'] = $i['type'] == 'dir' ? mimetype_icon('dir'): mimetype_icon($i['mimetype']); + $i['mimetype_icon'] = $i['type'] == 'dir' ? OCP\mimetype_icon('dir'): OCP\mimetype_icon($i['mimetype']); $files[] = $i; } |