Changeset 2503:fd451ccbaa59 for admin/update.php
- Timestamp:
- 10/29/13 16:31:16 (12 years ago)
- Branch:
- 2.6
- Children:
- 2504:d81b0e204d62, 2506:39edf8aaacef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/update.php
r2382 r2503 63 63 { 64 64 $b_file = $_POST['backup_file']; 65 65 66 66 try 67 67 { … … 73 73 http::redirect($p_url.'?tab=files'); 74 74 } 75 75 76 76 if (!empty($_POST['b_revert'])) 77 77 { … … 94 94 { 95 95 $updater->setForcedFiles('inc/digests'); 96 96 97 97 switch ($step) 98 98 { … … 133 133 { 134 134 $msg = $e->getMessage(); 135 135 136 136 if ($e->getCode() == dcUpdate::ERR_FILES_CHANGED) 137 137 { … … 154 154 'Please fix this or try to <a href="http://dotclear.org/download">update manually</a>.'); 155 155 } 156 156 157 157 if (isset($e->bad_files)) { 158 158 $msg .= … … 161 161 '</strong></li></ul>'; 162 162 } 163 163 164 164 $core->error->add($msg); 165 165 166 166 $core->callBehavior('adminDCUpdateException',$e); 167 167 } … … 171 171 -------------------------------------------------------- */ 172 172 dcPage::open(__('Dotclear update'), 173 (!$step ? 173 (!$step ? 174 174 dcPage::jsPageTabs($default_tab). 175 175 dcPage::jsLoad('js/_update.js') … … 206 206 __('Information about this version').') <img src="images/outgoing.png" alt=""/></a>' : ''). 207 207 '</p>'. 208 208 209 209 '<p>'.__('To upgrade your Dotclear installation simply click on the following button. '. 210 210 'A backup file of your current installation will be created in your root directory.').'</p>'. … … 215 215 } 216 216 echo '</div>'; 217 217 218 218 if (!empty($archives)) 219 219 { … … 224 224 '<p>'.__('The following files are backups of previously updates. '. 225 225 'You can revert your previous installation or delete theses files.').'</p>'; 226 226 227 227 echo '<form action="'.$p_url.'" method="post">'; 228 228 foreach ($archives as $v) { … … 231 231 html::escapeHTML($v).'</label></p>'; 232 232 } 233 233 234 234 echo 235 235 '<p><strong>'.__('Please note that reverting your Dotclear version may have some '. … … 256 256 dcPage::helpBlock('core_update'); 257 257 dcPage::close(); 258 ?>
Note: See TracChangeset
for help on using the changeset viewer.