Author: ilmari Date: 2007-06-16 21:32:05 +0100 (Sat, 16 Jun 2007) New Revision: 1082
Modified: trunk/lib/OpenGuides/Template.pm Log: Make the user preferences available to the templates.
Modified: trunk/lib/OpenGuides/Template.pm =================================================================== --- trunk/lib/OpenGuides/Template.pm 2007-06-16 19:45:04 UTC (rev 1081) +++ trunk/lib/OpenGuides/Template.pm 2007-06-16 20:32:05 UTC (rev 1082) @@ -94,6 +94,8 @@
=item * C<licence_info_url>
+=item * C<prefs> (the preferences from the user cookie) + =back
=over @@ -149,6 +151,7 @@
my $tt_vars = { config => $config, + prefs => %cookie_data, site_name => $config->site_name, cgi_url => $script_name, script_url => $script_url,