mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-09-13 04:54 am

[dw-free] $.view for Network is equal to $.view for the plain Read page

[commit: http://hg.dwscoalition.org/dw-free/rev/3743ffa4a22d]

http://bugs.dwscoalition.org/show_bug.cgi?id=1778

Fix $.view so that it shows 'network' on the network page.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/S2/FriendsPage.pm
--------------------------------------------------------------------------------
diff -r fe91fe551e64 -r 3743ffa4a22d cgi-bin/LJ/S2/FriendsPage.pm
--- a/cgi-bin/LJ/S2/FriendsPage.pm	Sun Sep 13 04:50:47 2009 +0000
+++ b/cgi-bin/LJ/S2/FriendsPage.pm	Sun Sep 13 04:54:03 2009 +0000
@@ -15,7 +15,7 @@ sub FriendsPage
 
     my $p = Page($u, $opts);
     $p->{'_type'} = "FriendsPage";
-    $p->{view} = "read";
+    $p->{view} = $opts->{view} eq "network" ? "network" : "read";
     $p->{'entries'} = [];
     $p->{'friends'} = {};
     $p->{'friends_title'} = LJ::ehtml($u->{'friendspagetitle'});
--------------------------------------------------------------------------------