Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r11073: LJSUP-9882: Comments for side projects -...

Committer: gariev
LJSUP-9882: Comments for side projects - learnip
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2011-10-07 09:08:00 UTC (rev 11072)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2011-10-07 13:59:40 UTC (rev 11073)
@@ -236,6 +236,7 @@
     foreach my $row ( @LJ::PARTNER_SITES ) {
         foreach my $field (@SEARCHABLE_FIELDS) {
             my $field_value = $row->{$field};
+            $field_value =~ s/-/_/g; ## canonic form, for journal_usernames mostly
             $search_cache{$field}->{$field_value} = $row;
         }
     }
@@ -251,6 +252,7 @@
         
         _init_cache() unless $is_cache_initialized;
 
+        $v =~ s/-/_/g;
         my $row = $search_cache{$field}->{$v};
         return unless $row;
         return $class->_new_from_config_row(%$row);

Tags: gariev, ljcom, pm
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