alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r17695: OPSC-187: Implement (move) games catalog...

Committer: afedorov
OPSC-187: Implement (move) games catalog at games.livejournal.com page

U   trunk/cgi-bin/Apache/LiveJournal.pm
U   trunk/cgi-bin/weblib.pl
U   trunk/htdocs/userinfo.bml
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2010-11-16 06:39:35 UTC (rev 17694)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2010-11-16 07:08:09 UTC (rev 17695)
@@ -891,11 +891,11 @@
             LJ::Request->pnotes ('error' => 'e404');
             LJ::Request->pnotes ('remote' => LJ::get_remote());
             return LJ::Request::NOT_FOUND;
-        } elsif ($func eq "apps") {
+        } elsif ($func eq "games") {
             LJ::get_remote();
             return redir(LJ::Session->setdomsess_handler()) if LJ::Request->uri eq "/__setdomsess";
     	    return remote_domsess_bounce() if LJ::remote_bounce_url();
-            return $bml_handler->("$LJ::HOME/htdocs/apps/game.bml");
+            return $bml_handler->("$LJ::HOME/htdocs/games/game.bml");
         } elsif ($func) {
             my $code = {
                 'userpics' => \&userpic_trans,

Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2010-11-16 06:39:35 UTC (rev 17694)
+++ trunk/cgi-bin/weblib.pl	2010-11-16 07:08:09 UTC (rev 17695)
@@ -2453,7 +2453,7 @@
         push @classes, "shop-page";
     } elsif ($uri =~ m!^/browse(/.*)?$!) {
         push @classes, "catalogue-page";
-    } elsif ($uri =~ m!^/apps(/.*)?$! || LJ::Request->header_in("Host") eq "$LJ::USERAPPS_SUBDOMAIN.$LJ::DOMAIN") {
+    } elsif ($uri =~ m!^/games(/.*)?$! || LJ::Request->header_in("Host") eq "$LJ::USERAPPS_SUBDOMAIN.$LJ::DOMAIN") {
         push @classes, 'framework-page';    
     } 
     return join(" ", @classes);

Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2010-11-16 06:39:35 UTC (rev 17694)
+++ trunk/htdocs/userinfo.bml	2010-11-16 07:08:09 UTC (rev 17695)
@@ -1591,7 +1591,7 @@
         $body .= "<div class='ljclear'></div>";
         $body .= "<div class='section'><img src='$LJ::IMGPREFIX/application.gif' alt='' /> $ML{'.apps.header'} ";
         $body .= "<span class='section_link'>[<a href='$LJ::SITEROOT/manage/settings/?cat=userapps'>$ML{'.section.edit'}</a>]</span> " if $remote && $remote->can_manage($u); 
-        $body .= "<span class='section_link'>[<a href='$LJ::SITEROOT/apps/info.bml?user=".$u->username."'>$ML{'.section.view_all'}</a>]</span></div>";
+        $body .= "<span class='section_link'>[<a href='$LJ::SITEROOT/games/info.bml?user=".$u->username."'>$ML{'.section.view_all'}</a>]</span></div>";
         $body .= $apps;
     }
     

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