diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
index 8e14822c168811c809733398448d20928fcac505..a780f1146131621b9c886111be2f382d6a460f64 100644
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -480,6 +480,7 @@ sub is_member {
 sub get_project_identifier {
     my $r = shift;
     
+    my $cfg = Apache2::Module::get_config(__PACKAGE__, $r->server, $r->per_dir_config);
     my $location = $r->location;
     my ($identifier) = $r->uri =~ m{$location/*([^/]+)};
     $identifier =~ s/\.git$// if (defined $cfg->{RedmineGitSmartHttp} and $cfg->{RedmineGitSmartHttp});