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

[ljcom] r10910: LJINT-452: Comments for side projects (G...

Committer: gariev
LJINT-452: Comments for side projects (Gazeta) - add new css path for m.gazeta.ru
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2011-08-24 03:44:04 UTC (rev 10909)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2011-08-24 04:00:10 UTC (rev 10910)
@@ -193,7 +193,7 @@
                               xdreceiver_path rate_limits encoding
                               mapping_locked disabled dochash_salt
                               sync_comments_count_url_pattern
-                              lj_resources raw_resources identities
+                              lj_resources identities
                               widget_version );
 
 ### CLASS METHODS ###
@@ -601,9 +601,20 @@
 
     return 
         LJ::res_includes( {'only_needed' => 1} ) . 
-        $self->raw_resources;
+        $self->raw_resources($opts);
 }
 
+sub raw_resources {
+    my $self = shift;
+    my $opts = shift;
+
+    my $type = $opts->{'type'} || '';
+    $type = '' if $type eq 'www';
+    
+    return ($type) ? $self->{"raw_resources_$type"} :  $self->{"raw_resources"};
+    
+}
+
 # note that this function returns a list, not a scalar
 # opts: entry, remote, journal
 sub _convert_comments_info {

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