Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -71,8 +71,11 @@ |
72 | 72 | return self::error( 'imagemap_bad_image' ); |
73 | 73 | } |
74 | 74 | // Parse the options so we can use links and the like in the caption |
75 | | - $parsedoptions = $parser->recursiveTagParse( $options ); |
76 | | - $imageHTML = $parser->makeImage( $imageTitle, $parsedoptions ); |
| 75 | + $parsedOptions = $parser->recursiveTagParse( $options ); |
| 76 | + $imageHTML = $parser->makeImage( $imageTitle, $parsedOptions ); |
| 77 | + $parser->replaceLinkHolders( $imageHTML ); |
| 78 | + $imageHTML = $parser->mStripState->unstripBoth( $imageHTML ); |
| 79 | + $imageHTML = Sanitizer::normalizeCharReferences( $imageHTML ); |
77 | 80 | $parser->mOutput->addImage( $imageTitle->getDBkey() ); |
78 | 81 | |
79 | 82 | $domDoc = new DOMDocument(); |