Changeset 1221 for trunk/install.php
- Timestamp:
- Apr 20, 2006, 9:31:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r1147 r1221 167 167 include(PHPWG_ROOT_PATH . 'include/constants.php'); 168 168 include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); 169 include(PHPWG_ROOT_PATH . 'admin/include/functions.php'); 169 170 include(PHPWG_ROOT_PATH . 'include/template.php'); 170 171 … … 333 334 // make PWG avoid upgrading, we must tell it upgrades have already been 334 335 // made. 336 list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); 337 define('CURRENT_DATE', $dbnow); 338 $datas = array(); 335 339 foreach (get_available_upgrade_ids() as $upgrade_id) 336 340 { 337 $query = ' 338 INSERT INTO '.UPGRADE_TABLE.' 339 (id, applied, description) 340 VALUES 341 ('.$upgrade_id.', NOW(), \'upgrade included in installation\') 342 '; 343 mysql_query($query); 344 } 341 array_push( 342 $datas, 343 array( 344 'id' => $upgrade_id, 345 'applied' => CURRENT_DATE, 346 'description' => 'upgrade included in installation', 347 ) 348 ); 349 } 350 mass_inserts( 351 UPGRADE_TABLE, 352 array_keys($datas[0]), 353 $datas 354 ); 345 355 } 346 356 }
Note: See TracChangeset
for help on using the changeset viewer.