From 3f7f511e189c93578caaf8e2c9708481d6152d52 Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Sun, 27 Jan 2008 15:16:44 +0000
Subject: [PATCH] forgot this (makes smilies work)

---
 lib/punbb/include/parser.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/punbb/include/parser.php b/lib/punbb/include/parser.php
index 7b8d524..901d8ae 100644
--- a/lib/punbb/include/parser.php
+++ b/lib/punbb/include/parser.php
@@ -363,7 +363,7 @@ function do_smilies($text)
 
 	$num_smilies = count($smiley_text);
 	for ($i = 0; $i < $num_smilies; ++$i)
-		$text = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.substr($smiley_img[$i], 0, strrpos($smiley_img[$i], '.')).'" />$2', $text);
+		$text = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="/images/forum/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.substr($smiley_img[$i], 0, strrpos($smiley_img[$i], '.')).'" />$2', $text);
 
 	return substr($text, 1, -1);
 }
-- 
GitLab