[vhffs-dev] [1843] No more HTML::Template in users RSS.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1843
Author:   beuss
Date:     2011-06-02 23:37:30 +0200 (Thu, 02 Jun 2011)
Log Message:
-----------
No more HTML::Template in users RSS.

Yes the content is not served as xml+rss anymore but who cares since it
only occurs when RSS isn't enabled?\226?\128?\166

Modified Paths:
--------------
    trunk/vhffs-public/extern/newusersrss.pl

Modified: trunk/vhffs-public/extern/newusersrss.pl
===================================================================
--- trunk/vhffs-public/extern/newusersrss.pl	2011-06-02 21:37:24 UTC (rev 1842)
+++ trunk/vhffs-public/extern/newusersrss.pl	2011-06-02 21:37:30 UTC (rev 1843)
@@ -90,18 +90,15 @@
 
 	binmode STDOUT , ':utf8';
 	print "Content-Type: text/xml; charset=utf-8\n\n" . $rss->as_string;
-}
-else
-{
-	use POSIX qw(locale_h);
-	use locale;
-	use Locale::gettext;
-	use HTML::Template;
-	my $templatedir = $vhffs->get_config->get_templatedir;
-        my $template = new HTML::Template( filename => $templatedir.'/public/simplemsg.tmpl' );
-        my $message = gettext( 'RSS infos are not published' );
-        $template->param( MESSAGE => $message );
+} else {
+    use POSIX qw(locale_h);
+    use locale;
+    use Locale::gettext;
+    use Vhffs::Panel::Public;
 
-	binmode STDOUT , ':utf8';
-	print "Content-Type: application/rss+xml; charset=utf-8\n\n" . $template->output;
+    my $panel = new Vhffs::Panel::Public;
+
+    $panel->render('misc/message.tt', {
+        message=> gettext( 'RSS infos are not published' )
+    });
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/