Fix deprecation warnings

This commit is contained in:
fiwswe 2022-09-07 11:20:34 +02:00 committed by GitHub
commit ac4848912d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,8 +133,8 @@ class SVG {
header('Content-Type: image/svg+xml');
$cachekey = md5($file . serialize($params) . $conf['template'] . filemtime(__FILE__));
$cache = new \cache($cachekey, '.svg');
$cache->_event = 'SVG_CACHE';
$cache = new \dokuwiki\Cache\Cache($cachekey, '.svg');
$cache->setEvent('SVG_CACHE');
http_cached($cache->cache, $cache->useCache(array('files' => array($file, __FILE__))));
if($params['e']) {