Changeset 2787 for trunk/upgrade.php
- Timestamp:
- Oct 22, 2008, 1:46:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upgrade.php
r2768 r2787 152 152 // +-----------------------------------------------------------------------+ 153 153 154 $template = new Template(PHPWG_ROOT_PATH.' template/yoga');154 $template = new Template(PHPWG_ROOT_PATH.'admin/template/goto'); 155 155 $template->set_filenames(array('upgrade'=>'upgrade.tpl')); 156 156 $template->assign('RELEASE', PHPWG_VERSION); … … 234 234 $conf['die_on_sql_error'] = false; 235 235 include($upgrade_file); 236 237 // Plugins deactivation 238 if (in_array(PREFIX_TABLE.'plugins', $tables)) 239 { 240 $query = ' 241 UPDATE '.PREFIX_TABLE.'plugins SET state="inactive" WHERE state="active" 242 ;'; 243 mysql_query($query); 244 245 if (mysql_affected_rows() > 0) 246 { 247 array_push( 248 $page['infos'], 249 'As a precaution, all activated plugins have been deactivated. 250 You must check for plugins upgrade before reactiving them.' 251 ); 252 } 253 } 236 254 237 255 // Create empty local files to avoid log errors
Note: See TracChangeset
for help on using the changeset viewer.