[vhffs-dev] [1363] s/strtoboolean/strtobool/ (sorry)

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


Revision: 1363
Author:   gradator
Date:     2009-03-10 10:35:19 +0100 (Tue, 10 Mar 2009)

Log Message:
-----------
s/strtoboolean/strtobool/  (sorry)

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Conf.pm
    trunk/vhffs-api/src/Vhffs/Functions.pm
    trunk/vhffs-api/src/Vhffs/Panel/Main.pm
    trunk/vhffs-panel/subscribe.pl


Modified: trunk/vhffs-api/src/Vhffs/Conf.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Conf.pm	2009-03-10 08:08:59 UTC (rev 1362)
+++ trunk/vhffs-api/src/Vhffs/Conf.pm	2009-03-10 09:35:19 UTC (rev 1363)
@@ -122,7 +122,7 @@
 {
 	my ( $self , $service ) = @_;
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $Config{'services'}{$service}{'activate'} );
+	return Vhffs::Functions::strtobool( $Config{'services'}{$service}{'activate'} );
 }
 
 sub get_listengine
@@ -191,7 +191,7 @@
 sub get_allow_subscribe
 {
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $Config{'global'}{'allow_subscribe'} );
+	return Vhffs::Functions::strtobool( $Config{'global'}{'allow_subscribe'} );
 }
 
 sub get_alert_mail
@@ -202,13 +202,13 @@
 sub get_moderation
 {
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $Config{'global'}{'moderation'} );
+	return Vhffs::Functions::strtobool( $Config{'global'}{'moderation'} );
 }
 
 sub use_vhffsfs
 {
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $Config{'global'}{'use_vhffsfs'} );
+	return Vhffs::Functions::strtobool( $Config{'global'}{'use_vhffsfs'} );
 }
 
 sub get_available_languages

Modified: trunk/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Functions.pm	2009-03-10 08:08:59 UTC (rev 1362)
+++ trunk/vhffs-api/src/Vhffs/Functions.pm	2009-03-10 09:35:19 UTC (rev 1363)
@@ -88,7 +88,7 @@
 
 
 # Return 1 if string is either 'yes', 'on', '1', 'y', else return 0
-sub strtoboolean
+sub strtobool
 {
 	my $str = shift;
 	return 0 unless defined $str;

Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2009-03-10 08:08:59 UTC (rev 1362)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2009-03-10 09:35:19 UTC (rev 1363)
@@ -91,7 +91,7 @@
 	my $panel = shift;
 	my $vhffs = $panel->{vhffs};
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'open'} );
+	return Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'open'} );
 }
 
 =pod
@@ -109,7 +109,7 @@
 	my $panel = shift;
 	my $vhffs = $panel->{vhffs};
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'use_public'} );
+	return Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'use_public'} );
 }
 
 =pod
@@ -127,8 +127,8 @@
 	my $panel = shift;
 	my $vhffs = $panel->{vhffs};
 	use Vhffs::Functions;
-	return ( Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'users_avatars'} )
-		|| Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'groups_avatars'} ) );
+	return ( Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'users_avatars'} )
+		|| Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'groups_avatars'} ) );
 }
 
 =pod
@@ -146,7 +146,7 @@
 	my $panel = shift;
 	my $vhffs = $panel->{vhffs};
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'users_avatars'} );
+	return Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'users_avatars'} );
 }
 
 =pod
@@ -164,7 +164,7 @@
 	my $panel = shift;
 	my $vhffs = $panel->{vhffs};
 	use Vhffs::Functions;
-	return Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'groups_avatars'} );
+	return Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'groups_avatars'} );
 }
 
 =pod

Modified: trunk/vhffs-panel/subscribe.pl
===================================================================
--- trunk/vhffs-panel/subscribe.pl	2009-03-10 08:08:59 UTC (rev 1362)
+++ trunk/vhffs-panel/subscribe.pl	2009-03-10 09:35:19 UTC (rev 1363)
@@ -66,7 +66,7 @@
 my $template;
 my $message;
 
-my $usecaptcha = Vhffs::Functions::strtoboolean( $vhffs->get_config->get_panel->{'use_captcha'} );
+my $usecaptcha = Vhffs::Functions::strtobool( $vhffs->get_config->get_panel->{'use_captcha'} );
 my $captchakey = $vhffs->get_config->get_panel->{'captchakey'};
 
 if( $vhffs->get_config->get_allow_subscribe == 0 )


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