Changeset 6013


Ignore:
Timestamp:
04/29/10 22:37:17 (9 years ago)
Author:
plg
Message:

bug fixed: if you have a Piwigo installation with unexpected access rights,
avoid errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/prepare21upgrade/prep21up.php

    r6010 r6013  
    134134// mysql.inc.php 
    135135$file = PHPWG_ROOT_PATH.'include/mysql.inc.php'; 
    136 if (file_exists($file)) 
     136if (is_readable($file)) 
    137137{ 
    138138  copy($file, $dir.'/local/config/database.inc.php'); 
     
    141141// config_local.inc.php 
    142142$file = PHPWG_ROOT_PATH.'include/config_local.inc.php'; 
    143 if (file_exists($file)) 
     143if (is_readable($file)) 
    144144{ 
    145145  copy($file, $dir.'/local/config/config.inc.php'); 
     
    151151{ 
    152152  $path = PHPWG_ROOT_PATH.'language/'.$file; 
    153   if (!is_link($path) and is_dir($path) and file_exists($path.'/local.lang.php')) 
     153  if (!is_link($path) and is_dir($path) and is_readable($path.'/local.lang.php')) 
    154154  { 
    155155    $content = file_get_contents($path.'/local.lang.php'); 
     
    168168// template-common/local-layout.css 
    169169$file = PHPWG_ROOT_PATH.'template-common/local-layout.css'; 
    170 if (file_exists($file)) 
     170if (is_readable($file)) 
    171171{ 
    172172  copy($file, $dir.'/local/css/rules.css'); 
     
    185185{ 
    186186  $file = PHPWG_ROOT_PATH.'template/'.$old_tpl.'/local-layout.css'; 
    187   if (file_exists($file)) 
     187  if (is_readable($file)) 
    188188  { 
    189189    copy($file, $dir.'/local/css/'.$new_tpl.'-rules.css'); 
Note: See TracChangeset for help on using the changeset viewer.