diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-25 19:05:49 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-25 19:05:49 -0700 |
commit | 70975dda4ae5237914b510ee61559fc8233ab34d (patch) | |
tree | 993b00bbfb51c3170bd2671962da09319bce0244 /include/bbcode.php | |
parent | b06b6f798fbfde8ab7f0ed25145b53560e6b4968 (diff) | |
download | volse-hubzilla-70975dda4ae5237914b510ee61559fc8233ab34d.tar.gz volse-hubzilla-70975dda4ae5237914b510ee61559fc8233ab34d.tar.bz2 volse-hubzilla-70975dda4ae5237914b510ee61559fc8233ab34d.zip |
remove all QR-code stuff from core - now in qrator addon
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index b8a62a2f2..461334415 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -201,16 +201,6 @@ function translate_design_element($type) { return $ret; } -/** - * @brief Returns an QR-code image from a value given in $match[1]. - * - * @param array $match - * @return string HTML img with QR-code of $match[1] - */ -function bb_qr($match) { - return '<img class="zrl" src="' . z_root() . '/photo/qr?f=&qr=' . urlencode($match[1]) . '" alt="' . t('QR code') . '" title="' . htmlspecialchars($match[1],ENT_QUOTES,'UTF-8') . '" />'; -} - function bb_ShareAttributes($match) { @@ -580,10 +570,6 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) $Text = preg_replace("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ism", '$1<a href="$2" >$2</a>', $Text); } - if (strpos($Text,'[/qr]') !== false) { - $Text = preg_replace_callback("/\[qr\](.*?)\[\/qr\]/ism", 'bb_qr', $Text); - } - if (strpos($Text,'[/share]') !== false) { $Text = preg_replace_callback("/\[share(.*?)\](.*?)\[\/share\]/ism", 'bb_ShareAttributes', $Text); } |