From ed81e301d83b7a96d1756447c96eb69838dc97bd Mon Sep 17 00:00:00 2001 From: Stephan Bauer Date: Sat, 19 Aug 2023 19:27:27 +0200 Subject: [PATCH] Remove deprecation messages --- auth.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/auth.php b/auth.php index aab3985..ec8ab03 100644 --- a/auth.php +++ b/auth.php @@ -6,6 +6,9 @@ * @author Eole */ +use dokuwiki\Logger; +use dokuwiki\Cache\Cache; + if (!defined('DOKU_INC')) { die(); } @@ -119,7 +122,7 @@ public function dbglog($msg) { if ($class_name !== false) { $msg = $class_name . ': ' . $msg; } - dbglog($msg); + Logger::debug($msg); } /** @@ -254,7 +257,7 @@ public function getUserData($user, $requireGroups = true) { } $this->_cache_duration = intval($this->getConf('phpbb_cache')); $depends = array('age' => self::CACHE_DURATION_UNIT * $this->_cache_duration); - $cache = new cache('authphpbb3_getUserData_' . $user, $this->_cache_ext_name); + $cache = new Cache('authphpbb3_getUserData_' . $user, $this->_cache_ext_name); $user_data = false; if (($this->_cache_duration > 0) && $cache->useCache($depends)) { @@ -558,7 +561,7 @@ private function load_configuration() { */ private function get_phpbb_cache() { if ($this->_cache === null) { - $this->_cache = new cache('authphpbb3', $this->_cache_ext_name); + $this->_cache = new Cache('authphpbb3', $this->_cache_ext_name); } return $this->_cache; }