From 3833516dea7b1ef2596b2a17711572b87b3c03f5 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 5 Sep 2009 08:23:55 +0000 Subject: [PATCH] Remove debug code --- e107_files/bbcode/img.bb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/e107_files/bbcode/img.bb b/e107_files/bbcode/img.bb index 06850af49..64d2d7561 100644 --- a/e107_files/bbcode/img.bb +++ b/e107_files/bbcode/img.bb @@ -1,3 +1,5 @@ +// $Id: img.bb,v 1.13 2009-09-05 08:23:55 e107steved Exp $ + // General purpose image bbcode. As well as the obvious insertion of a picture: // a) if filname begins with 'th_' or 'thumb_', creates link to main image opening in new window // b) If filename contains '*', treats it as a wildcard, and displays a random image from all matching file names found @@ -80,7 +82,6 @@ if (strpos($img_file['basename'],'*') !== FALSE) } } -$pref['image_post_class'] = 0; // Check for whether we can display image down here - so we can show image name if appropriate if (!varsettrue($pref['image_post']) || !check_class($pref['image_post_class'])) @@ -99,21 +100,21 @@ if (!varsettrue($pref['image_post']) || !check_class($pref['image_post_class'])) // Check for link to main image if required if (strpos($img_file['basename'],'th_') === 0) { - $addlink = TRUE; - $main_name = $img_file['dirname']."/".substr($img_file['basename'],3); // delete the 'th' prefix from file name + $addlink = TRUE; + $main_name = $img_file['dirname']."/".substr($img_file['basename'],3); // delete the 'th' prefix from file name } elseif (strpos($img_file['basename'],'thumb_') === 0) { - $addlink = TRUE; - $main_name = $img_file['dirname']."/".substr($img_file['basename'],6); // delete the 'thumb' prefix from file name + $addlink = TRUE; + $main_name = $img_file['dirname']."/".substr($img_file['basename'],6); // delete the 'thumb' prefix from file name } if ($addlink) { - return ""; + return ""; } else { - return ""; + return ""; }