[vhffs-dev] [1274] Fixing bug #251

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


Revision: 1274
Author:   beuss
Date:     2008-10-11 14:32:50 +0200 (Sat, 11 Oct 2008)

Log Message:
-----------
Fixing bug #251

Modified Paths:
--------------
    branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Commons.pm


Modified: branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Commons.pm
===================================================================
--- branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Commons.pm	2008-10-09 12:21:27 UTC (rev 1273)
+++ branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Commons.pm	2008-10-11 12:32:50 UTC (rev 1274)
@@ -67,7 +67,10 @@
     $template->param( TEXT_PASSWORD => gettext("Password") );
     $template->param( TEXT_LOGIN => gettext("Access to panel") );
     $template->param( TEXT_LOSTPASSWORD => gettext("I've lost my password") );
-    $template->param( TEXT_SUBSCRIBE => gettext("Subscribe") );
+    if( $vhffs->get_config->get_allow_subscribe ) {
+    	$template->param( SUBSCRIBE_OPEN => 1 );
+    	$template->param( TEXT_SUBSCRIBE => gettext("Subscribe") );
+    }
 
     $template->param( LANGS => $panel->select_lang );
 


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