ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17825: LJSUP-7377: Wishlist

Committer: ssafronova
LJSUP-7377: Wishlist
U   trunk/cgi-bin/Apache/LiveJournal.pm
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2010-11-30 07:15:57 UTC (rev 17824)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2010-11-30 07:35:02 UTC (rev 17825)
@@ -616,6 +616,19 @@
             return $bml_handler->("$LJ::HOME/htdocs/$file");
         }
 
+        if ($opts->{'mode'} eq "wishlist") {
+
+            if (my $u = LJ::load_user($opts->{user})) {
+                LJ::Request->notes("journalid" => $u->{userid});
+            } else {
+                LJ::Request->pnotes ('error' => 'baduser');
+                LJ::Request->pnotes ('remote' => LJ::get_remote());
+                return LJ::Request::NOT_FOUND;
+            }
+
+            return $bml_handler->("$LJ::HOME/htdocs/wishlist.bml");
+        }
+
         if ($opts->{'mode'} eq "update") {
             my $u = LJ::load_user($opts->{user})
                 or return LJ::Request::NOT_FOUND;

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2010-11-30 07:15:57 UTC (rev 17824)
+++ trunk/cgi-bin/ljlib.pl	2010-11-30 07:35:02 UTC (rev 17825)
@@ -182,6 +182,10 @@
                      # in S2, will be a real view.
                      "des" => "Profile Page",
                  },
+                 "wishlist" => {
+                     # just a redirect to wishlist.bml.
+                     "des" => "WishList Page",
+                 },
                  "tag" => {
                      "des" => "Filtered Recent Entries View",
                  },

Tags: livejournal, pl, pm, ssafronova
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