vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17738: LJINT-363: Comments for side projects

Committer: vsukhanov
LJINT-363: Comments for side projects
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2010-11-22 08:54:04 UTC (rev 17737)
+++ trunk/cgi-bin/LJ/Talk.pm	2010-11-22 09:10:20 UTC (rev 17738)
@@ -1432,6 +1432,8 @@
     # require_tos: optional toggle to include TOS requirement form
     # errors:      optional error arrayref
     # text_hint:   hint before message textarea
+    # embedable_form: use embedable template to draw form
+    #
     my $opts = shift;
     return "Invalid talkform values." unless ref $opts eq 'HASH';
 
@@ -1472,7 +1474,9 @@
 
     my $template = LJ::HTML::Template->new(
         { use_expr => 1 },    # force HTML::Template::Pro with Expr support
-        filename          => "$ENV{'LJHOME'}/templates/CommentForm/Form.tmpl",
+        filename          => $opts->{embedable_form}
+                                ? "$ENV{'LJHOME'}/templates/CommentForm/FormEmbedable.tmpl"
+                                : "$ENV{'LJHOME'}/templates/CommentForm/Form.tmpl",
         die_on_bad_params => 0,
         strict            => 0,
         )

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