diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-14 01:36:18 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-14 01:36:18 +0200 |
commit | f2d5af261b95310c2fb7d0565222c211998bff4f (patch) | |
tree | 08895bd9f38f0afbc549b2e70daaf78a28e1f9c2 /Bugzilla/Constants.pm | |
parent | 8cfb548a7897269668cc5879025546e4ae8ac500 (diff) | |
download | bugzilla-f2d5af261b95310c2fb7d0565222c211998bff4f.tar.gz bugzilla-f2d5af261b95310c2fb7d0565222c211998bff4f.tar.xz |
Bug 602418: Add "template_cache" to bz_locations(), a way of specifying that
cached templates should be stored somewhere else than the data directory.
r=LpSolit, a=mkanat
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 06bdaade0..14c3f2b26 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -596,6 +596,7 @@ sub bz_locations { $datadir = "data"; } + $datadir = "$libpath/$datadir"; # We have to return absolute paths for mod_perl. # That means that if you modify these paths, they must be absolute paths. return { @@ -605,10 +606,11 @@ sub bz_locations { # make sure this still points to the CGIs. 'cgi_path' => $libpath, 'templatedir' => "$libpath/template", + 'template_cache' => "$datadir/template", 'project' => $project, 'localconfig' => "$libpath/$localconfig", - 'datadir' => "$libpath/$datadir", - 'attachdir' => "$libpath/$datadir/attachments", + 'datadir' => $datadir, + 'attachdir' => "$datadir/attachments", 'skinsdir' => "$libpath/skins", # $webdotdir must be in the web server's tree somewhere. Even if you use a # local dot, we output images to there. Also, if $webdotdir is @@ -616,7 +618,7 @@ sub bz_locations { # change showdependencygraph.cgi to set image_url to the correct # location. # The script should really generate these graphs directly... - 'webdotdir' => "$libpath/$datadir/webdot", + 'webdotdir' => "$datadir/webdot", 'extensionsdir' => "$libpath/extensions", }; } |