changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r13077: LJCOMCOMREAD-349: Application theeming

Committer: tnurutdinov
LJCOMCOMREAD-349: Application theeming
U   trunk/cgi-bin/LJ/Controller.pm
Modified: trunk/cgi-bin/LJ/Controller.pm
===================================================================
--- trunk/cgi-bin/LJ/Controller.pm	2012-12-26 07:58:24 UTC (rev 13076)
+++ trunk/cgi-bin/LJ/Controller.pm	2012-12-26 08:57:11 UTC (rev 13077)
@@ -3,6 +3,7 @@
 use warnings;
 
 use LJ::Response;
+use LJ::Response::JSON;
 use LJ::Response::Template;
 
 sub new {
@@ -69,6 +70,14 @@
 
 # Responses
 
+sub json_response {
+    my ($self, $data) = @_;
+
+    return LJ::Response::JSON->new(
+        data => $data
+    );
+}
+
 sub redirect_response {
     my ($self, $url) = @_;
 

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