Stop after replaceing the first instance
This commit is contained in:
parent
d193b03c81
commit
a051fe15d3
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ class DjVuImage {
|
|||
EOR;
|
||||
$txt = preg_replace_callback( $reg, array( $this, 'pageTextCallback' ), $txt );
|
||||
$txt = "<DjVuTxt>\n<HEAD></HEAD>\n<BODY>\n" . $txt . "</BODY>\n</DjVuTxt>\n";
|
||||
$xml = preg_replace( "/<DjVuXML>/", "<mw-djvu><DjVuXML>", $xml );
|
||||
$xml = preg_replace( "/<DjVuXML>/", "<mw-djvu><DjVuXML>", $xml, 1 );
|
||||
$xml = $xml . $txt. '</mw-djvu>' ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue