diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-03-23 10:41:55 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-03-23 10:41:55 -0400 |
commit | 803f79e0912c4a526a16fdda4809277d8ad3195d (patch) | |
tree | 61dd6d3a8fc5368ad86b5d38a5d177ae9cd2d9f8 /include/text.php | |
parent | 8e29669b81f8df724bb77e2e2b6eff330a17cbec (diff) | |
parent | ce8cfb7b0531e72fe28b3a6a6440016e482bd016 (diff) | |
download | volse-hubzilla-803f79e0912c4a526a16fdda4809277d8ad3195d.tar.gz volse-hubzilla-803f79e0912c4a526a16fdda4809277d8ad3195d.tar.bz2 volse-hubzilla-803f79e0912c4a526a16fdda4809277d8ad3195d.zip |
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: (25 commits)
diabook: theme.php remove code duplication last photos check for user "hidewall" remove unneeded regex move js code to close popup in main.js (missing stop event propagation in popup links)
user settings: don't show emoticons
fix in css right_aside
small fix
fix 1024resolution
add right_aside to theme diabook
ability to change tags in edited posts
normalise comparison link on delegation page
quattro(-green) styling the 'filed under: remove' text
it's only item.filer ;-)
non static filer text
new lines removed
removed some new lines to cut down number of changed files
removed unneccessary stuff
removed problem from previous commit
tests for the template engine
adding filer functionality to quattro(-green)
missing tooltip for "file as"
prevent re-registrations using a deleted username - not an issue with Friendica but could create a serious privacy issue with federated platforms
add file_as-option to diabook-derivates
...
* master:
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 92a74eb49..6f66cef65 100644 --- a/include/text.php +++ b/include/text.php @@ -1338,3 +1338,16 @@ function file_tag_unsave_file($uid,$item,$file) { function normalise_openid($s) { return trim(str_replace(array('http://','https://'),array('',''),$s),'/'); } + + +function undo_post_tagging($s) { + $matches = null; + $cnt = preg_match_all('/([@#])\[url=(.*?)\](.*?)\[\/url\]/ism',$s,$matches,PREG_SET_ORDER); + if($cnt) { + foreach($matches as $mtch) { + $s = str_replace($mtch[0], $mtch[1] . $mtch[3],$s); + } + } + return $s; +} + |