From 4090a30fa2a42fe5715cbce21e0949d960663103 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 2 Nov 2010 07:58:16 +0000 Subject: [PATCH] message MDL-24972 removed some no longer required references to tabs --- message/lib.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/message/lib.php b/message/lib.php index 89fdeef33c6..9e7d30abaf0 100644 --- a/message/lib.php +++ b/message/lib.php @@ -967,13 +967,7 @@ function message_contact_link($userid, $linktype='add', $return=false, $script=n if (empty($script)) { //strip off previous action params like 'removecontact' - $theurl = message_remove_url_params($PAGE->url); - - if (strpos($theurl, '?')===false) { - $script = $theurl.'?tab=contacts'; - } else { - $script = $theurl.'&tab=contacts'; - } + $script = message_remove_url_params($PAGE->url); } if (empty($str->blockcontact)) {