mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-15 10:25:09 +00:00
avoid spamming logs with "PHP Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically" with E_NOTICE and E_STRICT enabled
This commit is contained in:
parent
c2ead4fc41
commit
82a6ced1e7
|
@ -281,7 +281,8 @@ class ImageMap {
|
|||
# Add the map HTML to the div
|
||||
# We used to add it before the div, but that made tidy unhappy
|
||||
if ( $mapHTML != '' ) {
|
||||
$mapDoc = DOMDocument::loadXML( $mapHTML );
|
||||
$mapDoc = new DOMDocument();
|
||||
$mapDoc->loadXML( $mapHTML );
|
||||
$mapNode = $domDoc->importNode( $mapDoc->documentElement, true );
|
||||
$div->appendChild( $mapNode );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue