diff --git a/main/install/install_functions.inc.php b/main/install/install_functions.inc.php index 1800342ddb..fd74027e6b 100755 --- a/main/install/install_functions.inc.php +++ b/main/install/install_functions.inc.php @@ -76,11 +76,15 @@ function get_php_setting($val) { /** * This function checks if the given folder is writable */ -function check_writable($folder) { +function check_writable($folder,$suggestion=false) { if (is_writable('../'.$folder)) { return ''.get_lang('Writable').''; } else { - return ''.get_lang('NotWritable').''; + if ($suggestion == true) { + return ''.get_lang('NotWritable').''; + } else { + return ''.get_lang('NotWritable').''; + } } } @@ -531,11 +535,11 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u chamilo/main/css/ - '.check_writable('css/').' ('.get_lang('SuggestionOnlyToEnableCSSUploadFeature').') + '.check_writable('css/',true).' ('.get_lang('SuggestionOnlyToEnableCSSUploadFeature').') chamilo/main/lang/ - '.check_writable('lang/').' ('.get_lang('SuggestionOnlyToEnableSubLanguageFeature').') + '.check_writable('lang/',true).' ('.get_lang('SuggestionOnlyToEnableSubLanguageFeature').') '. //' // dokeos/searchdb/