Changeset 2254 for trunk/upgrade.php
- Timestamp:
- Mar 6, 2008, 1:25:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upgrade.php
r2102 r2254 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 148 148 $template = new Template(PHPWG_ROOT_PATH.'template/yoga'); 149 149 $template->set_filenames(array('upgrade'=>'upgrade.tpl')); 150 $template->assign _vars(array('RELEASE'=>PHPWG_VERSION));150 $template->assign('RELEASE', PHPWG_VERSION); 151 151 152 152 // +-----------------------------------------------------------------------+ … … 180 180 $current_release = '1.5.0'; 181 181 } 182 else if ( !in_array(PREFIX_TABLE.'history_summary', $tables))182 else if ( !in_array(PREFIX_TABLE.'history_summary', $tables) ) 183 183 { 184 184 if (!in_array('auto_login_key', $columns_of[PREFIX_TABLE.'user_infos'])) … … 196 196 } 197 197 198 $template->assign _block_vars(198 $template->assign( 199 199 'introduction', 200 200 array( … … 216 216 die('No database upgrade required, do not refresh the page'); 217 217 } 218 218 219 219 $upgrade_file = PHPWG_ROOT_PATH.'install/upgrade_'.$_GET['version'].'.php'; 220 220 if (is_file($upgrade_file)) … … 250 250 // Create empty local files to avoid log errors 251 251 create_empty_local_files(); 252 252 253 253 $page['upgrade_end'] = get_moment(); 254 254 255 $template->assign _block_vars(255 $template->assign( 256 256 'upgrade', 257 257 array( … … 291 291 ); 292 292 293 $template->assign _block_vars('upgrade.infos', array());293 $template->assign('infos', $page['infos']); 294 294 295 foreach ($page['infos'] as $info)296 {297 $template->assign_block_vars(298 'upgrade.infos.info',299 array(300 'CONTENT' => $info,301 )302 );303 }304 305 295 $query = ' 306 296 UPDATE '.USER_CACHE_TABLE.'
Note: See TracChangeset
for help on using the changeset viewer.