| | 82 | if (!isset($conf['combined_dir_checked'])) |
| | 83 | { |
| | 84 | mkgetdir(PWG_COMBINED_DIR, MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR); |
| | 85 | if (!is_writable(PWG_COMBINED_DIR)) |
| | 86 | { |
| | 87 | load_language('admin.lang'); |
| | 88 | fatal_error( |
| | 89 | sprintf( |
| | 90 | l10n('Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'), |
| | 91 | PWG_COMBINED_DIR |
| | 92 | ), |
| | 93 | l10n('an error happened'), |
| | 94 | false // show trace |
| | 95 | ); |
| | 96 | } |
| | 97 | if (function_exists('pwg_query')) { |
| | 98 | conf_update_param('combined_dir_checked', 'true'); |
| | 99 | } |
| | 100 | } |
| | 101 | |
| | 102 | |