Changeset 25018 for trunk/admin/include/updates.class.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/updates.class.php
r23821 r25018 162 162 if (in_array($ext_id, $conf['updates_ignored'][$type])) 163 163 { 164 array_push($ignore_list, $ext_id);164 $ignore_list[] = $ext_id; 165 165 } 166 166 else … … 249 249 and !empty($old_files)) 250 250 { 251 array_push($old_files, $file);251 $old_files[] = $file; 252 252 foreach($old_files as $old_file) 253 253 { … … 315 315 else 316 316 { 317 array_push($page['errors'], l10n('Unable to dump database.'));317 $page['errors'][] = l10n('Unable to dump database.'); 318 318 } 319 319 } … … 415 415 if ($step == 2) 416 416 { 417 array_push($page['infos'], l10n('Update Complete'), $upgrade_to); 417 $page['infos'][] = l10n('Update Complete'); 418 $page['infos'][] = $upgrade_to; 418 419 $step = -1; 419 420 } … … 426 427 { 427 428 file_put_contents(PHPWG_ROOT_PATH.$conf['data_location'].'update/log_error.txt', $error); 428 array_push( 429 $page['errors'], 430 sprintf( 431 l10n('An error has occured during extract. Please check files permissions of your piwigo installation.<br><a href="%s">Click here to show log error</a>.'), 432 get_root_url().$conf['data_location'].'update/log_error.txt' 433 ) 434 ); 429 430 $page['errors'][] = l10n( 431 'An error has occured during extract. Please check files permissions of your piwigo installation.<br><a href="%s">Click here to show log error</a>.', 432 get_root_url().$conf['data_location'].'update/log_error.txt' 433 ); 435 434 } 436 435 } … … 438 437 { 439 438 deltree(PHPWG_ROOT_PATH.$conf['data_location'].'update'); 440 array_push($page['errors'], l10n('An error has occured during upgrade.'));439 $page['errors'][] = l10n('An error has occured during upgrade.'); 441 440 } 442 441 } 443 442 else 444 443 { 445 array_push($page['errors'], l10n('Piwigo cannot retrieve upgrade file from server'));444 $page['errors'][] = l10n('Piwigo cannot retrieve upgrade file from server'); 446 445 } 447 446 }
Note: See TracChangeset
for help on using the changeset viewer.