Merge pull request #93 from fiwswe/master

Fix deprecation warnings
This commit is contained in:
Andreas Gohr 2022-09-08 21:52:40 +02:00 committed by GitHub
commit 1a213d0fd4
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']) {