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

[livejournal] r16462: LJSUP-5634 (LJ Wallet): initial checkin ...

Committer: ailyin
LJSUP-5634 (LJ Wallet): initial checkin (includes a little bit of refactoring)

U   trunk/cgi-bin/LJ/URI.pm
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/URI.pm
===================================================================
--- trunk/cgi-bin/LJ/URI.pm	2010-03-26 10:00:14 UTC (rev 16461)
+++ trunk/cgi-bin/LJ/URI.pm	2010-03-26 10:08:46 UTC (rev 16462)
@@ -58,6 +58,11 @@
         return LJ::URI->bml_handler("statistics/index.bml");
     }
 
+    if ($uri =~ m|^/wallet/?|) {
+        return Apache::LiveJournal::redir("$uri/") unless $uri =~ m|/$|;
+        return LJ::URI->bml_handler('shop/wallet.bml');
+    }
+
     return undef;
 }
 

Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2010-03-26 10:00:14 UTC (rev 16461)
+++ trunk/cgi-bin/LJ/User.pm	2010-03-26 10:08:46 UTC (rev 16462)
@@ -460,6 +460,7 @@
     # return true if no failures
     return $ret_zero ? 0 : 1;
 }
+*is_underage = \&underage;
 
 # return true if we know user is a minor (< 18)
 sub is_minor {

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