[vhffs-dev] [1866] User language is now accessible to templates

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


Revision: 1866
Author:   beuss
Date:     2011-06-03 21:37:39 +0200 (Fri, 03 Jun 2011)
Log Message:
-----------
User language is now accessible to templates

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Panel/Main.pm

Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2011-06-03 15:02:35 UTC (rev 1865)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2011-06-03 19:37:39 UTC (rev 1866)
@@ -493,6 +493,7 @@
     }
     my @langs = $self->{vhffs}->get_config->get_available_languages;
     $vars->{languages} = \@langs;
+    $vars->{language} = $self->{lang};
     $vars->{errors} = $self->{errors};
     $vars->{infos} = $self->{infos};
     $vars->{current_user} = $self->{user};


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