ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r9829: LJSUP-7377: Wishlist

Committer: ssafronova
LJSUP-7377: Wishlist
U   trunk/cgi-bin/LJ/Hooks/SUP.pm
Modified: trunk/cgi-bin/LJ/Hooks/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/SUP.pm	2010-12-13 07:01:57 UTC (rev 9828)
+++ trunk/cgi-bin/LJ/Hooks/SUP.pm	2010-12-13 08:55:40 UTC (rev 9829)
@@ -1008,5 +1008,15 @@
 
 });
 
+LJ::register_hook("ctxpopup_extra_info", sub {
+    my $u = shift;
 
+    return unless $u;
+    return unless LJ::WishList->may_edit($u);
+
+    return ( wishlist_url => $u->journal_base . "/wishlist",
+             ml_view_wishlist => LJ::Lang::ml('/tools/endpoints/ctxpopup.bml.view_wishlist'),
+            );
+});
+
 1;

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