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

[ljcom] r10586: LJINT-435 (Cross-version support in comm...

Committer: ailyin
LJINT-435 (Cross-version support in comments for side projects)
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2011-05-31 09:52:05 UTC (rev 10585)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2011-05-31 10:00:19 UTC (rev 10586)
@@ -1014,4 +1014,17 @@
     return $self->{'identities_enabled'}->{$idtype};
 }
 
+sub get {
+    my ( $self, $k ) = @_;
+
+    if ( $k eq 'widget_version' ) {
+        if ( my $ver_override = LJ::Request->get_param('ver') ) {
+            $ver_override =~ s/\D//sg;
+            return $ver_override;
+        }
+    }
+
+    return $self->SUPER::get($k);
+}
+
 1;

Tags: andy, 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