From 70889081f13417dbcbaf2a4d9076146d596a1235 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 25 Mar 2002 12:41:41 +0000 Subject: Move phpbb_preg_quote back into functions because it's plain annoying ... :D git-svn-id: file:///svn/phpbb/trunk@2427 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'phpBB/includes/bbcode.php') diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index dd46f94d34..c90ab8145a 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -764,22 +764,5 @@ function smiley_sort($a, $b) return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1; } -// -// this does exactly what preg_quote() does in PHP 4-ish: -// http://www.php.net/manual/en/function.preg-quote.php -// -// This function is here because the 2nd paramter to preg_quote was added in some -// version of php 4.0.x.. So we use this in order to maintain compatibility with -// earlier versions of PHP. -// -// If you just need the 1-parameter preg_quote call, then don't bother using this. -// -function phpbb_preg_quote($str, $delimiter) -{ - $text = preg_quote($str); - $text = str_replace($delimiter, "\\" . $delimiter, $text); - - return $text; -} -?> +?> \ No newline at end of file -- cgit v1.2.1