Skip to content

Commit

Permalink
Merge pull request gongwalker#4 from leeka515/patch-2
Browse files Browse the repository at this point in the history
修正导出后锚链接错误
  • Loading branch information
wen.gong committed Aug 15, 2015
2 parents ded4a56 + 816a2af commit 0689bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MinPHP/run/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getJSFileContent($matches){
//=======页面锚点连接替换start=======================================
$pattern = '/(href=[\"\']).*tag=\d#(\w+)/is';
function changeLink($matches){
return "{$matches[1]}#{$matches[2]}'";
return "{$matches[1]}#{$matches[2]}";
}
$content = preg_replace_callback($pattern,'changeLink',$content);
$tag = C('version->no');
Expand Down

0 comments on commit 0689bf2

Please sign in to comment.