From f2d5af261b95310c2fb7d0565222c211998bff4f Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 13 Oct 2010 16:36:18 -0700 Subject: 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 --- Bugzilla/Constants.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Constants.pm') 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", }; } -- cgit v1.2.3-24-g4f1b