Changeset 1290:de23a6996243 for admin/update.php
- Timestamp:
- 08/08/13 20:57:54 (11 years ago)
- Branch:
- default
- Parents:
- 1281:adc66344a752 (diff), 1289:0495340e6e77 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/update.php
r1280 r1290 54 54 } 55 55 if (!empty($archives)) { 56 $archives = array_reverse($archives);56 usort($archives,"version_compare"); 57 57 } else { 58 58 $default_tab = 'update'; … … 208 208 209 209 echo '<form action="'.$p_url.'" method="post">'; 210 211 210 foreach ($archives as $v) { 212 211 echo -
admin/update.php
r1287 r1290 27 27 28 28 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 29 $new_v = $updater->check(DC_VERSION , !empty($_GET['nocache']));29 $new_v = $updater->check(DC_VERSION); 30 30 $zip_file = $new_v ? DC_BACKUP_PATH.'/'.basename($updater->getFileURL()) : ''; 31 31 $version_info = $new_v ? $updater->getInfoURL() : ''; … … 173 173 if (!$core->error->flag()) { 174 174 echo '<h2>'.__('Dotclear update').'</h2>'; 175 176 if (!empty($_GET['nocache'])) {177 dcPage::message(__('Manual checking of update done successfully.'));178 }179 175 } 180 176 … … 184 180 if (empty($new_v)) 185 181 { 186 echo '<p><strong>'.__('No newer Dotclear version available.').'</strong></p>'. 187 '<form action="'.$p_url.'" method="get">'. 188 '<p><input type="hidden" name="nocache" value="1" />'. 189 '<input type="submit" value="'.__('Force checking update Dotclear').'" /></p>'. 190 '</form>'; 182 echo '<p><strong>'.__('No newer Dotclear version available.').'</strong></p>'; 191 183 } 192 184 else
Note: See TracChangeset
for help on using the changeset viewer.