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

files_opds: \OC_Helper -> OCP\Util (needed for OC9.0+)

This commit is contained in:
frankdelange 2016-03-11 01:23:46 +01:00
parent 1f1544214e
commit 4a366ac1cf
2 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,7 @@
The feed is in compliance with the OPDS 1.1 specification according to the online OPDS validator (http://opds-validator.appspot.com/).
</description>
<licence>AGPL</licence>
<version>0.6.13</version>
<version>0.6.14</version>
<author>Frank de Lange</author>
<shipped>false</shipped>
<default_enable/>

View file

@ -10,6 +10,8 @@
namespace OCA\Files_Opds;
use OCP\Util;
$l = new \OC_L10N('files_opds');
\OCP\Util::addScript('files_opds', 'personal');
@ -23,7 +25,7 @@ $tmpl->assign('fileTypes', Config::get('file_types', ''));
$tmpl->assign('skipList', Config::get('skip_list', 'metadata.opf,cover.jpg'));
$tmpl->assign('feedTitle', Config::get('feed_title', $l->t("%s's Library", \OCP\User::getDisplayName())));
$tmpl->assign('bookshelf-count', Bookshelf::count());
$tmpl->assign('feedUrl', \OC_Helper::linkToAbsolute('','index.php') . '/apps/files_opds/');
$tmpl->assign('feedUrl', Util::linkToAbsolute('','index.php') . '/apps/files_opds/');
return $tmpl->fetchPage();