Merge pull request #261 from OnkarRuikar/patch-1

Fix `Class "OCP\App" not found` error
This commit is contained in:
Joachim Bauch 2023-07-10 14:23:10 +02:00 committed by GitHub
commit 280cc90d27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
/** @var array $_ */
/** @var OCP\IURLGenerator $urlGenerator */
$urlGenerator = $_['urlGenerator'];
$version = \OCP\App::getAppVersion('pdfdraw');
$version = \OC::$server->getAppManager()->getAppVersion('pdfdraw');
?>
<!DOCTYPE html>
<!--