aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-25 19:05:49 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-25 19:05:49 -0700
commit70975dda4ae5237914b510ee61559fc8233ab34d (patch)
tree993b00bbfb51c3170bd2671962da09319bce0244 /include/bbcode.php
parentb06b6f798fbfde8ab7f0ed25145b53560e6b4968 (diff)
downloadvolse-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.php14
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);
}