X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fmedia%2FSVG.php;h=1118598f88d6c187df1dda3a7ef03690ed74fafb;hb=6da98ee84b844c9fba0d6c7fa76d8fc50bf2abbc;hp=4377f751f0ce8c814581ad0c4cf31d9764e2379e;hpb=a07ea9326e540e7b7b54685a0dff796cd9e9572f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/SVG.php b/includes/media/SVG.php index 4377f751f0..1118598f88 100644 --- a/includes/media/SVG.php +++ b/includes/media/SVG.php @@ -205,6 +205,7 @@ class SvgHandler extends ImageHandler { $tmpDir = wfTempDir() . '/svg_' . wfRandomString( 24 ); $lnPath = "$tmpDir/" . basename( $srcPath ); $ok = mkdir( $tmpDir, 0771 ) && symlink( $srcPath, $lnPath ); + /** @noinspection PhpUnusedLocalVariableInspection */ $cleaner = new ScopedCallback( function () use ( $tmpDir, $lnPath ) { MediaWiki\suppressWarnings(); unlink( $lnPath );