aboutsummaryrefslogtreecommitdiffstats
path: root/mod/setup.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-10 21:34:52 -0700
committerfriendica <info@friendica.com>2014-07-10 21:34:52 -0700
commitc74fd789935e19074e2799b5201654ffe3bfce5c (patch)
tree4778b979ba14b16b2b994c1ee8279ee133ecf060 /mod/setup.php
parentf2c54cfcaf9d154970a4a4c99384e267f8699022 (diff)
downloadvolse-hubzilla-c74fd789935e19074e2799b5201654ffe3bfce5c.tar.gz
volse-hubzilla-c74fd789935e19074e2799b5201654ffe3bfce5c.tar.bz2
volse-hubzilla-c74fd789935e19074e2799b5201654ffe3bfce5c.zip
move smarty compiled files to store/[data]/smarty3 - which puts all writeable areas of the server except the config file and logs under the "store" directory. We'll do logs at a future time.
Diffstat (limited to 'mod/setup.php')
-rwxr-xr-xmod/setup.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/setup.php b/mod/setup.php
index 69e026056..7932d67af 100755
--- a/mod/setup.php
+++ b/mod/setup.php
@@ -510,16 +510,16 @@ function check_htconfig(&$checks) {
function check_smarty3(&$checks) {
$status = true;
$help = "";
- if( !is_writable('view/tpl/smarty3') ) {
+ if( !is_writable(TEMPLATE_BUILD_PATH) ) {
$status=false;
$help = t('Red uses the Smarty3 template engine to render its web views. Smarty3 compiles templates to PHP to speed up rendering.') .EOL;
- $help .= t('In order to store these compiled templates, the web server needs to have write access to the directory view/tpl/smarty3/ under the Red top level folder.').EOL;
+ $help .= sprintf( t('In order to store these compiled templates, the web server needs to have write access to the directory %s under the Red top level folder.'), TEMPLATE_BUILD_PATH) . EOL;
$help .= t('Please ensure that the user that your web server runs as (e.g. www-data) has write access to this folder.').EOL;
- $help .= t('Note: as a security measure, you should give the web server write access to view/tpl/smarty3/ only--not the template files (.tpl) that it contains.').EOL;
+ $help .= sprintf( t('Note: as a security measure, you should give the web server write access to %s only--not the template files (.tpl) that it contains.'), TEMPLATE_BUILD_PATH) . EOL;
}
- check_add($checks, t('view/tpl/smarty3 is writable'), $status, true, $help);
+ check_add($checks, sprintf( t('%s is writable'), TEMPLATE_BUILD_PATH), $status, true, $help);
}