From 3c302bae5ac71c1853d33117f9bbcfc0e5d81651 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 13 Nov 2016 20:22:01 -0800 Subject: move all the zid related stuff to one file --- include/text.php | 75 -------------------------------------------------------- 1 file changed, 75 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index fa16a16a1..12b37222b 100644 --- a/include/text.php +++ b/include/text.php @@ -837,14 +837,6 @@ function tag_sort_length($a,$b) { -function strip_zids($s) { - return preg_replace('/[\?&]zid=(.*?)(&|$)/ism','$2',$s); -} - -function strip_zats($s) { - return preg_replace('/[\?&]zat=(.*?)(&|$)/ism','$2',$s); -} - /** * @brief Quick and dirty quoted_printable encoding. * @@ -1700,73 +1692,6 @@ function create_export_photo_body(&$item) { } } -/** - * zidify_callback() and zidify_links() work together to turn any HTML a tags with class="zrl" into zid links - * These will typically be generated by a bbcode '[zrl]' tag. This is done inside prepare_text() rather than bbcode() - * because the latter is used for general purpose conversions and the former is used only when preparing text for - * immediate display. - * - * Issues: Currently the order of HTML parameters in the text is somewhat rigid and inflexible. - * We assume it looks like \ and will not work if zrl and href appear in a different order. - * - * @param array $match - * @return string - */ -function zidify_callback($match) { - $is_zid = ((feature_enabled(local_channel(),'sendzid')) || (strpos($match[1],'zrl')) ? true : false); - $replace = '