Changeset 12261 for trunk/admin/include/updates.class.php
- Timestamp:
- Sep 29, 2011, 4:52:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/updates.class.php
r11185 r12261 39 39 40 40 if (preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches) 41 and @fetchRemote(PHPWG_URL.'/download/all_versions.php ', $result))41 and @fetchRemote(PHPWG_URL.'/download/all_versions.php?rand='.md5(uniqid(rand(), true)), $result)) 42 42 { 43 43 $all_versions = @explode("\n", $result); … … 137 137 if (!$this->get_server_extensions()) 138 138 { 139 autoupdate_error();139 return false; 140 140 } 141 141 … … 394 394 $end = false; 395 395 $zip = @fopen($filename, 'w'); 396 396 397 while (!$end) 397 398 { … … 455 456 if ($step == 2) 456 457 { 457 array_push($page['infos'], sprintf(l10n('autoupdate_success'), $upgrade_to));458 array_push($page['infos'], l10n('Update Complete'), $upgrade_to); 458 459 $step = -1; 459 460 } … … 467 468 file_put_contents($conf['local_data_dir'].'/update/log_error.txt', $error); 468 469 $relative_path = trim(str_replace(dirname(dirname(dirname(dirname(__FILE__)))), '', $conf['local_data_dir']), '/\\'); 469 array_push($page['errors'], sprintf(l10n('autoupdate_extract_fail'), PHPWG_ROOT_PATH.$relative_path.'/update/log_error.txt')); 470 array_push( 471 $page['errors'], 472 sprintf( 473 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>.'), 474 PHPWG_ROOT_PATH.$relative_path.'/update/log_error.txt' 475 ) 476 ); 470 477 } 471 478 } … … 473 480 { 474 481 self::deltree($conf['local_data_dir'].'/update'); 475 array_push($page['errors'], l10n(' autoupdate_fail'));482 array_push($page['errors'], l10n('An error has occured during upgrade.')); 476 483 } 477 484 }
Note: See TracChangeset
for help on using the changeset viewer.