From d51de44974865be809ab867dcd758be018d67a9b Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 9 Oct 2009 15:05:12 +0000 Subject: [PATCH] Comment IMODE removal, shortcode fixes --- e107_files/shortcode/batch/comment_shortcodes.php | 6 +++--- e107_handlers/comment_class.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/e107_files/shortcode/batch/comment_shortcodes.php b/e107_files/shortcode/batch/comment_shortcodes.php index 7d80791e1..51b11c223 100644 --- a/e107_files/shortcode/batch/comment_shortcodes.php +++ b/e107_files/shortcode/batch/comment_shortcodes.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/comment_shortcodes.php,v $ -| $Revision: 1.11 $ -| $Date: 2009-09-19 15:30:47 $ +| $Revision: 1.12 $ +| $Date: 2009-10-09 15:05:12 $ | $Author: secretr $ +----------------------------------------------------------------------------+ */ @@ -35,7 +35,7 @@ SC_BEGIN USERNAME global $USERNAME, $comrow; if (isset($comrow['user_id']) && $comrow['user_id']) { - $USERNAME = "".$comrow['user_name']."\n"; + $USERNAME = $parm == 'raw' ? $comrow['user_name'] : "".$comrow['user_name']."\n"; } else { diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 0819a3cbf..84b2558a7 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $ - | $Revision: 1.27 $ - | $Date: 2009-09-29 17:43:13 $ + | $Revision: 1.28 $ + | $Date: 2009-10-09 15:05:12 $ | $Author: secretr $ +----------------------------------------------------------------------------+ */ @@ -283,15 +283,15 @@ class comment } if (!defined("IMAGE_rank_main_admin_image")) { - define("IMAGE_rank_main_admin_image", (isset($pref['rank_main_admin_image']) && $pref['rank_main_admin_image'] && file_exists(THEME."forum/".$pref['rank_main_admin_image']) ? "" : "")); + define("IMAGE_rank_main_admin_image", (isset($pref['rank_main_admin_image']) && $pref['rank_main_admin_image'] && file_exists(THEME."forum/".$pref['rank_main_admin_image']) ? "" : "")); } if (!defined("IMAGE_rank_moderator_image")) { - define("IMAGE_rank_moderator_image", (isset($pref['rank_moderator_image']) && $pref['rank_moderator_image'] && file_exists(THEME."forum/".$pref['rank_moderator_image']) ? "" : "")); + define("IMAGE_rank_moderator_image", (isset($pref['rank_moderator_image']) && $pref['rank_moderator_image'] && file_exists(THEME."forum/".$pref['rank_moderator_image']) ? "" : "")); } if (!defined("IMAGE_rank_admin_image")) { - define("IMAGE_rank_admin_image", (isset($pref['rank_admin_image']) && $pref['rank_admin_image'] && file_exists(THEME."forum/".$pref['rank_admin_image']) ? "" : "")); + define("IMAGE_rank_admin_image", (isset($pref['rank_admin_image']) && $pref['rank_admin_image'] && file_exists(THEME."forum/".$pref['rank_admin_image']) ? "" : "")); } $RATING = ($addrating == TRUE && $comrow['user_id'] ? $rater->composerating($thistable, $thisid, FALSE, $comrow['user_id']) : ""); $text = $tp->parseTemplate($renderstyle, TRUE, $comment_shortcodes);