Index: trunk/phase3/includes/DjVuImage.php |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | EOR; |
272 | 272 | $txt = preg_replace_callback( $reg, array( $this, 'pageTextCallback' ), $txt ); |
273 | 273 | $txt = "<DjVuTxt>\n<HEAD></HEAD>\n<BODY>\n" . $txt . "</BODY>\n</DjVuTxt>\n"; |
274 | | - $xml = preg_replace( "/<DjVuXML>/", "<mw-djvu><DjVuXML>", $xml ); |
| 274 | + $xml = preg_replace( "/<DjVuXML>/", "<mw-djvu><DjVuXML>", $xml, 1 ); |
275 | 275 | $xml = $xml . $txt. '</mw-djvu>' ; |
276 | 276 | } |
277 | 277 | } |