Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r12618: LJSUP-13561 (add cluster names for the n...

Committer: ailyin
LJSUP-13561 (add cluster names for the new clusters)
U   trunk/cgi-bin/ljcom.pl
Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2012-09-06 14:08:41 UTC (rev 12617)
+++ trunk/cgi-bin/ljcom.pl	2012-09-06 14:15:37 UTC (rev 12618)
@@ -537,7 +537,12 @@
 # cluster definition hook.  gets called: $clusterid
 LJ::register_hook('cluster_description', sub {
     my $cid = $_[0]+0;
-    return $LJ::CLUSTERNAME{$cid} || "Cluster $cid";
+
+    if ( my $name = $LJ::CLUSTERNAME{$cid} ) {
+        return "$name (#$cid)";
+    }
+
+    return "Cluster $cid";
 });
 
 # LJ user transition business logic

Tags: ailyin, andy, ljcom, pl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments