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

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


Revision: 1275
Author:   beuss
Date:     2008-10-11 14:33:44 +0200 (Sat, 11 Oct 2008)

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

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


Modified: trunk/vhffs-api/src/Vhffs/Panel/Commons.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Commons.pm	2008-10-11 12:32:50 UTC (rev 1274)
+++ trunk/vhffs-api/src/Vhffs/Panel/Commons.pm	2008-10-11 12:33:44 UTC (rev 1275)
@@ -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/