Changeset 9594 for trunk/include/template.class.php
- Timestamp:
- Mar 10, 2011, 10:57:03 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r9586 r9594 80 80 } 81 81 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 82 103 $compile_dir = $conf['local_data_dir'].'/templates_c'; 83 104 mkgetdir( $compile_dir );
Note: See TracChangeset
for help on using the changeset viewer.