url_auto_link함수에 url_auto_link_before hook 추가 #361
This commit is contained in:
@ -258,6 +258,12 @@ function url_auto_link($str)
|
|||||||
global $g5;
|
global $g5;
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
if ($replace_str = run_replace('url_auto_link_before', '', $str)) {
|
||||||
|
return $replace_str;
|
||||||
|
}
|
||||||
|
|
||||||
|
$ori_str = $str;
|
||||||
|
|
||||||
// 140326 유창화님 제안코드로 수정
|
// 140326 유창화님 제안코드로 수정
|
||||||
// http://sir.kr/pg_lecture/461
|
// http://sir.kr/pg_lecture/461
|
||||||
// http://sir.kr/pg_lecture/463
|
// http://sir.kr/pg_lecture/463
|
||||||
@ -290,7 +296,7 @@ function url_auto_link($str)
|
|||||||
$str = preg_replace("/\t_gt_\t/", ">", $str);
|
$str = preg_replace("/\t_gt_\t/", ">", $str);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return run_replace('url_auto_link', $str);
|
return run_replace('url_auto_link', $str, $ori_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user