X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FSVGMetadataExtractor.php;h=fc93b2331f223cd2aabac0fd9a3ec9305d1510f8;hb=f80e50f318a350c4486d272b1bc1bb5c22715a7c;hp=9b22cbee1add53f0e15d5ff7b0863b3993bba2f1;hpb=e4af56a9fbafb368724f9fdbc6ae85f5aa1efc35;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 9b22cbee1a..fc93b2331f 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -106,17 +106,17 @@ class SVGReader { // Because we cut off the end of the svg making an invalid one. Complicated // try catch thing to make sure warnings get restored. Seems like there should // be a better way. - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); try { $this->read(); } catch ( Exception $e ) { // Note, if this happens, the width/height will be taken to be 0x0. // Should we consider it the default 512x512 instead? - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); libxml_disable_entity_loader( $oldDisable ); throw $e; } - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); libxml_disable_entity_loader( $oldDisable ); }