diff options
author | Zach Prezkuta <fermion@gmx.com> | 2013-01-06 19:34:54 -0700 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2013-01-06 19:34:54 -0700 |
commit | b4a95460e65dbadaf074a414a9e3d9367e109f19 (patch) | |
tree | c5a88652557bf5e6ba18b6c1d6edc09740960736 /mod/setup.php | |
parent | 4281a95cbcc6a6bc2eae9ec0b393af9b0ec7b739 (diff) | |
download | volse-hubzilla-b4a95460e65dbadaf074a414a9e3d9367e109f19.tar.gz volse-hubzilla-b4a95460e65dbadaf074a414a9e3d9367e109f19.tar.bz2 volse-hubzilla-b4a95460e65dbadaf074a414a9e3d9367e109f19.zip |
fix show-stopping bugs
Diffstat (limited to 'mod/setup.php')
-rwxr-xr-x | mod/setup.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/setup.php b/mod/setup.php index b3649ca40..4fa5152ea 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -183,6 +183,8 @@ function setup_content(&$a) { check_htconfig($checks); + check_smarty3($checks); + check_keys($checks); if(x($_POST,'phpath')) @@ -439,6 +441,22 @@ function check_htconfig(&$checks) { } +function check_smarty3(&$checks) { + $status = true; + $help = ""; + if( !is_writable('view/tpl/smarty3') ) { + + $status=false; + $help = t('Friendica 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 Friendica top level folder.').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; + } + + check_add($checks, t('view/tpl/smarty3 is writable'), $status, true, $help); + +} + function check_htaccess(&$checks) { $a = get_app(); $status = true; |