[vhffs-dev] [1725] Templates can now know if public area is available

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


Revision: 1725
Author:   beuss
Date:     2011-05-14 13:13:16 +0200 (Sat, 14 May 2011)
Log Message:
-----------
Templates can now know if public area is available

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-05-14 09:34:05 UTC (rev 1724)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2011-05-14 11:13:16 UTC (rev 1725)
@@ -650,6 +650,7 @@
 	$vars->{panel_url} = $conf->get_panel->{url};
     $vars->{title} = sprintf( gettext( '%s\'s Panel' ), $conf->get_host_name );
     $vars->{page_title} = $self->{title};
+    $vars->{has_public_area} = $self->is_public;
     my @langs = $self->{vhffs}->get_config->get_available_languages;
     $vars->{languages} = \@langs;
     $vars->{errors} = $self->{errors};


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