Changeset 6013
- Timestamp:
- Apr 29, 2010, 10:37:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/prepare21upgrade/prep21up.php
r6010 r6013 134 134 // mysql.inc.php 135 135 $file = PHPWG_ROOT_PATH.'include/mysql.inc.php'; 136 if ( file_exists($file))136 if (is_readable($file)) 137 137 { 138 138 copy($file, $dir.'/local/config/database.inc.php'); … … 141 141 // config_local.inc.php 142 142 $file = PHPWG_ROOT_PATH.'include/config_local.inc.php'; 143 if ( file_exists($file))143 if (is_readable($file)) 144 144 { 145 145 copy($file, $dir.'/local/config/config.inc.php'); … … 151 151 { 152 152 $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')) 154 154 { 155 155 $content = file_get_contents($path.'/local.lang.php'); … … 168 168 // template-common/local-layout.css 169 169 $file = PHPWG_ROOT_PATH.'template-common/local-layout.css'; 170 if ( file_exists($file))170 if (is_readable($file)) 171 171 { 172 172 copy($file, $dir.'/local/css/rules.css'); … … 185 185 { 186 186 $file = PHPWG_ROOT_PATH.'template/'.$old_tpl.'/local-layout.css'; 187 if ( file_exists($file))187 if (is_readable($file)) 188 188 { 189 189 copy($file, $dir.'/local/css/'.$new_tpl.'-rules.css');
Note: See TracChangeset
for help on using the changeset viewer.