1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

v0.4: title/subtitle configurable, templates split into parts, several fixes

This commit is contained in:
frankdelange 2014-12-15 01:03:42 +01:00
parent 62ef3b9d4d
commit 74f25cfe7c
17 changed files with 142 additions and 131 deletions

View file

@ -12,6 +12,7 @@
namespace OCA\Files_Opds;
/**
* Feed class for OPDS
*/
@ -64,7 +65,9 @@ class Feed
$tmpl->assign('id', $id);
$tmpl->assign('dir', $dir);
$tmpl->assign('user', \OCP\User::getDisplayName());
$tmpl->assign('ocname', $defaults->getName());
$tmpl->assign('feed_title', Config::get('feed_title',\OCP\User::getDisplayName() . "'s Library"));
$tmpl->assign('feed_subtitle', Config::getApp('feed_subtitle', $defaults->getName() . " OPDS catalog"));
$tmpl->assign('feed_updated', time());
$tmpl->printPage();
}

View file

@ -27,7 +27,7 @@ class Files extends \OCA\Files\Helper
$entry = array();
$entry['id'] = $i['fileid'];
$entry['mtime'] = $i['mtime'] * 1000;
$entry['mtime'] = $i['mtime'];
$entry['name'] = $i->getName();
$entry['type'] = $i['type'];
if ($i['type'] === 'file') {