Fix deprecated OCP\App calls

This commit is contained in:
Alfred Egger 2020-05-14 13:38:57 +02:00
parent 7e6c972399
commit 4726223c19
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($downloadLink)); $title = htmlentities(basename($downloadLink));
$revision = '0048'; $revision = '0048';
$version = \OCP\App::getAppVersion('epubreader') . '.' . $revision; $version = \OC::$server->getAppManager()->getAppVersion('epubreader') . '.' . $revision;
/* Mobile safari, the new IE6 */ /* Mobile safari, the new IE6 */
$idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') $idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')

View File

@ -14,7 +14,7 @@
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($downloadLink)); $title = htmlentities(basename($downloadLink));
$revision = '0072'; $revision = '0072';
$version = \OCP\App::getAppVersion('epubreader') . '.' . $revision; $version = \OC::$server->getAppManager()->getAppVersion('epubreader') . '.' . $revision;
/* Mobile safari, the new IE6 */ /* Mobile safari, the new IE6 */
$idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') $idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')

View File

@ -14,7 +14,7 @@
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($downloadLink)); $title = htmlentities(basename($downloadLink));
$revision = '0130'; $revision = '0130';
$version = \OCP\App::getAppVersion('epubreader') . '.' . $revision; $version = \OC::$server->getAppManager()->getAppVersion('epubreader') . '.' . $revision;
/* Mobile safari, the new IE6 */ /* Mobile safari, the new IE6 */
$idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') $idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')