Dotclear


Ignore:
Timestamp:
07/26/13 09:14:57 (12 years ago)
Author:
Denis Jean-Christian <contact@…>
Branch:
Ticket 1412
Message:

Forcer le test d'existance de mise à jour, closes #1412

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/update.php

    r1179 r1231  
    2727 
    2828$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'])); 
    3030$zip_file = $new_v ? DC_BACKUP_PATH.'/'.basename($updater->getFileURL()) : ''; 
    3131$version_info = $new_v ? $updater->getInfoURL() : ''; 
     
    173173if (!$core->error->flag()) { 
    174174     echo '<h2>'.__('Dotclear update').'</h2>'; 
     175      
     176     if (!empty($_GET['nocache'])) { 
     177          dcPage::message(__('Manual checking of update done successfully.')); 
     178     } 
    175179} 
    176180 
     
    180184     if (empty($new_v)) 
    181185     { 
    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>'; 
    183191     } 
    184192     else 
Note: See TracChangeset for help on using the changeset viewer.

Sites map