mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
#17632578 * planet 작성시 퍼머링크 자동변환 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5354 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
25aa73dca7
commit
b5f22581d4
1 changed files with 2 additions and 1 deletions
|
|
@ -126,7 +126,8 @@
|
|||
$obj->content = str_replace(array('<','>'),array('<','>'),$obj->content);
|
||||
$obj->content = str_replace('...', '…', $obj->content);
|
||||
$obj->content = str_replace('--', '—', $obj->content);
|
||||
$obj->content = preg_replace('/"([^"]*)":(http|ftp|https|mms)([^ ]+)/is','<a href="$2$3" onclick="window.open(this.href);return false;">$1</a>$4', $obj->content);
|
||||
$obj->content = preg_replace('/"([^"]+)":([0-9]+)/ig', '<a href="'.Context::getRequestUri().'$2">$1</a>', $obj->content);
|
||||
$obj->content = preg_replace('/"([^"]+)":(http|ftp|https|mms)([^ ]+)/is','<a href="$2$3" onclick="window.open(this.href);return false;">$1</a>$4', $obj->content);
|
||||
$oDocumentController = &getController('document');
|
||||
$output = $oDocumentController->insertDocument($obj,$manual_inserted);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue