diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-01 13:06:24 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-02 10:57:45 +0000 |
commit | a503961c5acc60199df7e539d3dc3f537b2adbea (patch) | |
tree | 0b46ac25f1e51cead4bcfd2fa90c930ace8c4469 /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | bf3b3d271bd18ee25652a957d500e38f9c33237e (diff) |
Better path for showing config git version.
The default cobrand does not have a template directory, so the
directory change to it was not working. Use the root directory
of the repository instead.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index e91597bb0..3782063d5 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -129,7 +129,7 @@ sub index : Path : Args(0) { sub config_page : Path( 'config' ) : Args(0) { my ($self, $c) = @_; - my $dir = $c->stash->{additional_template_paths}->[0]; + my $dir = FixMyStreet->path_to(); my $git_version = `cd $dir && git describe --tags`; chomp $git_version; $c->stash( |