Changeset 2102
- Timestamp:
- Sep 21, 2007, 11:06:00 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upgrade.php
r2096 r2102 79 79 } 80 80 81 // Create empty local files to avoid log errors 82 function create_empty_local_files() 83 { 84 $files = 85 array ( 86 PHPWG_ROOT_PATH . 'template-common/local-layout.css', 87 PHPWG_ROOT_PATH . 'template/yoga/local-layout.css' 88 ); 89 90 foreach ($files as $path) 91 { 92 if (!file_exists ($path)) 93 { 94 $file = @fopen($path, "w"); 95 @fwrite($file , '/* You can modify this file */'); 96 @fclose($file); 97 } 98 } 99 } 100 81 101 ?> -
trunk/install.php
r1930 r2102 205 205 include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); 206 206 include(PHPWG_ROOT_PATH . 'admin/include/functions.php'); 207 include(PHPWG_ROOT_PATH . 'admin/include/functions_upgrade.php'); 207 208 include(PHPWG_ROOT_PATH . 'include/template.php'); 209 210 // Create empty local files to avoid log errors 211 create_empty_local_files(); 208 212 209 213 if ( isset( $_POST['language'] )) -
trunk/upgrade.php
r2096 r2102 247 247 $datas 248 248 ); 249 250 // Create empty local files to avoid log errors 251 create_empty_local_files(); 249 252 250 253 $page['upgrade_end'] = get_moment();
Note: See TracChangeset
for help on using the changeset viewer.