[thirdparty-commits] russell: mantis/trunk r137 - /mantis/trunk/

SVN commits to the Digium third-party software repository thirdparty-commits at lists.digium.com
Mon Jan 4 11:06:17 CST 2010


Author: russell
Date: Mon Jan  4 11:06:15 2010
New Revision: 137

URL: http://svnview.digium.com/svn/thirdparty?view=rev&rev=137
Log:
Remove some references to karma

Modified:
    mantis/trunk/bug_report.php
    mantis/trunk/bug_update.php
    mantis/trunk/mantis_karma.php

Modified: mantis/trunk/bug_report.php
URL: http://svnview.digium.com/svn/thirdparty/mantis/trunk/bug_report.php?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- mantis/trunk/bug_report.php (original)
+++ mantis/trunk/bug_report.php Mon Jan  4 11:06:15 2010
@@ -107,7 +107,7 @@
 
 	if ($t_bug_data->view_state != 50) {
 		$irc_string = '*** NEW (' . $t_bug_id . ') [' . $t_bug_data->category . '] ' . $t_bug_data->summary;
-		$irc_string = $irc_string . "\n" . 'Reported by: ' . user_get_name($t_bug_data->reporter_id) . '  Karma: ' . karma_get_user_score($t_bug_data->reporter_id);
+		$irc_string = $irc_string . "\n" . 'Reported by: ' . user_get_name($t_bug_data->reporter_id);
 		$irc_string = $irc_string . "\n" . 'https://issues.asterisk.org/' . string_get_bug_view_url($t_bug_id);
 		system('echo ' . escapeshellarg(${irc_string}) . ' | nc -w 1 -u 127.0.0.1 15124 > /dev/null');
 	}

Modified: mantis/trunk/bug_update.php
URL: http://svnview.digium.com/svn/thirdparty/mantis/trunk/bug_update.php?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- mantis/trunk/bug_update.php (original)
+++ mantis/trunk/bug_update.php Mon Jan  4 11:06:15 2010
@@ -160,7 +160,7 @@
 					if ($t_bug_data->handler_id > 0) {
 						$irc_string = $irc_string . "\n" . 'Assigned to: ' . user_get_name($t_bug_data->handler_id);
 					}
-					$irc_string = $irc_string . "\n" . 'Reported by: ' . user_get_name($t_bug_data->reporter_id) . '  Karma: ' . karma_get_user_score($t_bug_data->reporter_id);
+					$irc_string = $irc_string . "\n" . 'Reported by: ' . user_get_name($t_bug_data->reporter_id);
 					$irc_string = $irc_string . "\n" . 'https://issues.asterisk.org/' . string_get_bug_view_url($f_bug_id);
 					system('echo ' . escapeshellarg(${irc_string}) . ' | nc -w 1 -u 127.0.0.1 15124 > /dev/null');
 					bug_set_field( $f_bug_id, 'status', CLOSED );
@@ -180,7 +180,7 @@
  					if ($t_bug_data->handler_id > 0) {
  						$irc_string = $irc_string . "\n" . 'Assigned to: ' . user_get_name($t_bug_data->handler_id);
  					}
- 					$irc_string = $irc_string . "\n" . 'Reported by: ' . user_get_name($t_bug_data->reporter_id) . '  Karma: ' . karma_get_user_score($t_bug_data->reporter_id);
+ 					$irc_string = $irc_string . "\n" . 'Reported by: ' . user_get_name($t_bug_data->reporter_id);
  					$irc_string = $irc_string . "\n" . 'https://issues.asterisk.org/' . string_get_bug_view_url($f_bug_id);
 					if (($ircsock = fsockopen("udp://127.0.0.1", 15124, $errno, $errstr, 2))) {
 						fwrite($ircsock, $irc_string);

Modified: mantis/trunk/mantis_karma.php
URL: http://svnview.digium.com/svn/thirdparty/mantis/trunk/mantis_karma.php?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- mantis/trunk/mantis_karma.php (original)
+++ mantis/trunk/mantis_karma.php Mon Jan  4 11:06:15 2010
@@ -495,15 +495,15 @@
 function karma_show_karma_score ($p_bug_id, $p_user_id) {
 
     # Displays the karma score with a link to the transactions that make up the score
-    $t_karma_score = karma_get_user_score($p_user_id);
-    if ($t_karma_score == 0) {
-        echo " (Karma: <A HREF=\"karma_view_transactions.php?bug_id=$p_bug_id&user_id=$p_user_id\">neutral</A>)";
-    } else {
-        if ($t_karma_score > 0) {
-            $t_karma_score = "+" . sprintf("%.2f", $t_karma_score);
-        }
-        echo " (Karma: <A HREF=\"karma_view_transactions.php?bug_id=$p_bug_id&user_id=$p_user_id\">" . $t_karma_score . "</A>)";
-    }
+    #$t_karma_score = karma_get_user_score($p_user_id);
+    #if ($t_karma_score == 0) {
+    #    echo " (Karma: <A HREF=\"karma_view_transactions.php?bug_id=$p_bug_id&user_id=$p_user_id\">neutral</A>)";
+    #} else {
+    #    if ($t_karma_score > 0) {
+    #        $t_karma_score = "+" . sprintf("%.2f", $t_karma_score);
+    #    }
+    #    echo " (Karma: <A HREF=\"karma_view_transactions.php?bug_id=$p_bug_id&user_id=$p_user_id\">" . $t_karma_score . "</A>)";
+    #}
 
 }
 




More information about the thirdparty-commits mailing list