r8178@llin: dpavlin | 2005-09-18 21:23:19 +0200
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Mon, 19 Sep 2005 11:07:31 +0000 (11:07 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Mon, 19 Sep 2005 11:07:31 +0000 (11:07 +0000)
 fixed index handling when using node URI

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@123 8392b6e1-25fa-0310-8288-cc32f8e212ea

lib/BackupPC/SearchLib.pm

index fa12904..73d6939 100644 (file)
@@ -15,11 +15,7 @@ my $pager_pages = 10;
 my $dsn = $Conf{SearchDSN};
 my $db_user = $Conf{SearchUser} || '';
 
-my $index_path = $Conf{HyperEstraierIndex};
-if ($index_path) {
-       $index_path = $TopDir . '/' . $index_path;
-       $index_path =~ s#//#/#g;
-}
+my $hest_index_path = $Conf{HyperEstraierIndex};
 
 my $dbh;
 
@@ -198,11 +194,11 @@ sub getFilesHyperEstraier($) {
        my $offset = $param->{'offset'} || 0;
        $offset *= $on_page;
 
-       die "no index_path?" unless ($index_path);
+       die "no index_path?" unless ($hest_index_path);
 
        use HyperEstraier;
 
-       my ($index_path, $index_node_url) = getHyperEstraier_url($index_path);
+       my ($index_path, $index_node_url) = getHyperEstraier_url($hest_index_path);
 
        # open the database
        my $db;