Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* @author Eole <eole.dev@outlook.com>
*/

use dokuwiki\Logger;
use dokuwiki\Cache\Cache;

if (!defined('DOKU_INC')) {
die();
}
Expand Down Expand Up @@ -119,7 +122,7 @@ public function dbglog($msg) {
if ($class_name !== false) {
$msg = $class_name . ': ' . $msg;
}
dbglog($msg);
Logger::debug($msg);
}

/**
Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -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;
}
Expand Down