Changeset 1231:415e762385aa for admin/update.php
- Timestamp:
- 07/26/13 09:14:57 (12 years ago)
- Branch:
- Ticket 1412
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/update.php
r1179 r1231 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 );29 $new_v = $updater->check(DC_VERSION, !empty($_GET['nocache'])); 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 } 175 179 } 176 180 … … 180 184 if (empty($new_v)) 181 185 { 182 echo '<p><strong>'.__('No newer Dotclear version available.').'</strong></p>'; 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>'; 183 191 } 184 192 else
Note: See TracChangeset
for help on using the changeset viewer.