Fix deprecated OCP\App calls
This commit is contained in:
parent
7e6c972399
commit
4726223c19
@ -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')
|
||||||
|
@ -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')
|
||||||
|
@ -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')
|
||||||
|
Reference in New Issue
Block a user