Skip to content

Commit

Permalink
deal with removed APIs isEnabled and getAppVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
tpokorra committed Aug 9, 2024
1 parent 53e9fcc commit d6c0108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

$requestUri = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '');

if (\OC_App::isEnabled($c->getAppName()) && !\OC::$CLI) {
//if (\OC_App::isEnabled($c->getAppName()) && !\OC::$CLI) {
if (true && !\OC::$CLI) {

/** @var UserService $userService */
$userService = $c->query('UserService');
Expand Down
2 changes: 1 addition & 1 deletion templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<input type="hidden" autocomplete="false" />

<h2><?php p($l->t('CAS Authentication backend')); ?>
&nbsp;<?php p(\OC_App::getAppInfo('user_cas')["version"]); ?></h2>
&nbsp;<?php p("unknown version"); ?></h2>

<div id="casSettings" class="personalblock">
<ul>
Expand Down

0 comments on commit d6c0108

Please sign in to comment.