mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
files_reader: new version of epub.js, using JSZip.
files_opds: empty bookshelf seems to cause problems for some, now fixed.
This commit is contained in:
parent
394533fd14
commit
77143932b8
19 changed files with 7923 additions and 127 deletions
|
@ -55,11 +55,13 @@ class Bookshelf
|
|||
*/
|
||||
public static function get() {
|
||||
$files = array();
|
||||
$bookshelf = json_decode(Config::get('bookshelf', ''), true);
|
||||
arsort($bookshelf);
|
||||
while (list($id, $time) = each($bookshelf)) {
|
||||
array_push($files, \OC\Files\Filesystem::getFileInfo(\OC\Files\Filesystem::normalizePath(\OC\Files\Filesystem::getPath($id))));
|
||||
if($bookshelf = json_decode(Config::get('bookshelf', ''), true)) {
|
||||
arsort($bookshelf);
|
||||
while (list($id, $time) = each($bookshelf)) {
|
||||
array_push($files, \OC\Files\Filesystem::getFileInfo(\OC\Files\Filesystem::normalizePath(\OC\Files\Filesystem::getPath($id))));
|
||||
}
|
||||
}
|
||||
|
||||
return $files;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue