Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -70,7 +70,8 @@ |
71 | 71 | $imageHTML = $parser->makeImage( $imageTitle, $options ); |
72 | 72 | $parser->mOutput->addImage( $imageTitle->getDBkey() ); |
73 | 73 | |
74 | | - $domDoc = DOMDocument::loadXML( $imageHTML ); |
| 74 | + $domDoc = new DOMDocument(); |
| 75 | + $domDoc->loadXML( $imageHTML ); |
75 | 76 | $xpath = new DOMXPath( $domDoc ); |
76 | 77 | $imgs = $xpath->query( '//img' ); |
77 | 78 | if ( !$imgs->length ) { |