Ignore:
Timestamp:
Apr 28, 2010, 6:11:07 PM (14 years ago)
Author:
plg
Message:

bug 860: display a more readable error when the _data directory is not writable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r5448 r5985  
    5353    $this->smarty->force_compile = $conf['template_force_compile'];
    5454
     55    if (!is_writable($conf['local_data_dir']))
     56    {
     57      load_language('admin.lang');
     58      fatal_error(
     59        sprintf(
     60          l10n('Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'),
     61          basename($conf['local_data_dir'])
     62          ),
     63        l10n('an error happened'),
     64        false // show trace
     65        );
     66    }
    5567    $compile_dir = $conf['local_data_dir'].'/templates_c';
    5668    mkgetdir( $compile_dir );
Note: See TracChangeset for help on using the changeset viewer.