Committer: vtroitsky
OPSC-197 Ajax endpoint for requestPermission and requestShareApp functions addedU trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm =================================================================== --- trunk/cgi-bin/Apache/LiveJournal.pm 2010-11-23 11:08:56 UTC (rev 17757) +++ trunk/cgi-bin/Apache/LiveJournal.pm 2010-11-23 11:20:18 UTC (rev 17758) @@ -894,6 +894,9 @@ } elsif ($func eq "games") { LJ::get_remote(); return redir(LJ::Session->setdomsess_handler()) if LJ::Request->uri eq "/__setdomsess"; + + return LJ::URI->bml_handler($LJ::AJAX_URI_MAP{$1}) if (LJ::Request->uri =~ /^\/__rpc_(ljapp.*)$/); + return remote_domsess_bounce() if LJ::remote_bounce_url(); return $bml_handler->("$LJ::HOME/htdocs/games/game.bml"); } elsif ($func) {