[vhffs-dev] [843] bye bye get_web_config and get_repositoryurl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 843
Author: gradator
Date: 2007-08-30 22:32:44 +0000 (Thu, 30 Aug 2007)
Log Message:
-----------
bye bye get_web_config and get_repositoryurl
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Conf.pm
trunk/vhffs-robots/src/web_stats.pl
Modified: trunk/vhffs-api/src/Vhffs/Conf.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Conf.pm 2007-08-30 22:27:03 UTC (rev 842)
+++ trunk/vhffs-api/src/Vhffs/Conf.pm 2007-08-30 22:32:44 UTC (rev 843)
@@ -307,18 +307,6 @@
}
-sub get_repositoryurl
-{
- if( defined $Config{"services"}{"repository"}{"repository_url"} )
- {
- return $Config{"services"}{"repository"}{"repository_url"};
- }
- else
- {
- return "repository";
- }
-}
-
sub use_nospam
{
return -1 if( ! defined $Config{"services"}{"mail"} );
@@ -345,12 +333,6 @@
return( 0 );
}
-sub get_web_config
-{
- return $Config{"services"}{"web"};
-}
-
-
sub use_vhffsfs
{
return 1 if( ( defined $Config{'global'}{'use_vhffsfs'} ) && ( $Config{'global'}{'use_vhffsfs'} eq 'yes' ) );
Modified: trunk/vhffs-robots/src/web_stats.pl
===================================================================
--- trunk/vhffs-robots/src/web_stats.pl 2007-08-30 22:27:03 UTC (rev 842)
+++ trunk/vhffs-robots/src/web_stats.pl 2007-08-30 22:32:44 UTC (rev 843)
@@ -49,7 +49,7 @@
my $webs = Vhffs::Services::Web::getall( $vhffs , Vhffs::Constants::ACTIVATED );
die "ERROR: Cannot fetch the list of websites\n" if( ! defined $webs );
-my $webconf = Vhffs::Conf::get_web_config();
+my $webconf = $vhffs->get_config->get_service('web');
die "ERROR: A full web configuration is needed to generate stats\n" if ( ! defined $webconf );
my $log_incoming_root = $webconf->{"log_incoming_root"};