mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
Initial port to OC8, files_opds works, files_reader does not yet work
This commit is contained in:
parent
0d96eb08a4
commit
ba221c1d61
8 changed files with 54 additions and 6 deletions
|
@ -35,7 +35,7 @@ class Feed
|
|||
*/
|
||||
public static function serveFile($path, $id) {
|
||||
\OCP\User::checkLoggedIn();
|
||||
\OC::$session->close();
|
||||
\OC::$server->getSession()->close();
|
||||
Bookshelf::add($id);
|
||||
$dirName = dirname($path);
|
||||
$fileName = basename($path);
|
||||
|
@ -81,7 +81,7 @@ class Feed
|
|||
*/
|
||||
public static function servePreview($path, $type) {
|
||||
\OCP\User::checkLoggedIn();
|
||||
\OC::$session->close();
|
||||
\OC::$server->getSession()->close();
|
||||
$i = \OC\Files\Filesystem::getFileInfo($path,false);
|
||||
|
||||
/* check for predefined cover, if found replace $path with that of cover file */
|
||||
|
|
|
@ -23,7 +23,7 @@ class Files extends \OCA\Files\Helper
|
|||
* @param \OCP\Files\FileInfo $i
|
||||
* @return array formatted file info
|
||||
*/
|
||||
public static function formatFileInfo($i) {
|
||||
public static function formatFileInfo(\OCP\Files\FileInfo $i) {
|
||||
$entry = array();
|
||||
|
||||
$entry['id'] = $i['fileid'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue