Skip to content

Commit

Permalink
Merge pull request #261 from OnkarRuikar/patch-1
Browse files Browse the repository at this point in the history
Fix `Class "OCP\App" not found` error
  • Loading branch information
fancycode authored Jul 10, 2023
2 parents d4334a7 + a761f40 commit 280cc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
<!--
Expand Down

0 comments on commit 280cc90

Please sign in to comment.