Dotclear

Changeset 166:9e19911313f2


Ignore:
Timestamp:
05/05/11 14:08:02 (14 years ago)
Author:
xave <xave@…>
Branch:
default
Message:

Activated handling of version info in auto-update.

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r157 r166  
    234234     $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 
    235235     $new_v = $updater->check(DC_VERSION); 
     236     $version_info = $new_v ? $updater->getInfoURL() : ''; 
    236237      
    237238     if ($updater->getNotify() && $new_v) { 
     
    240241          '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'. 
    241242          '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 
     243          ($version_info ? ' </li><li><a href="'.$version_info.'">'.__('information about this version').'</a>' : ''). 
    242244          '</li></ul></div>'; 
    243245     } 
  • admin/update.php

    r3 r166  
    2929$new_v = $updater->check(DC_VERSION); 
    3030$zip_file = $new_v ? DC_BACKUP_PATH.'/'.basename($updater->getFileURL()) : ''; 
     31$version_info = $new_v ? $updater->getInfoURL() : ''; 
    3132 
    3233# Hide "update me" message 
     
    168169     { 
    169170          echo 
    170           '<p class="static-msg">'.sprintf(__('Dotclear %s is available.'),$new_v).'</p>'. 
     171               '<p class="static-msg">'.sprintf(__('Dotclear %s is available.'),$new_v). 
     172                    ($version_info ? ' <a href="'.$version_info.'">('.__('information about this version').')</a>' : ''). 
     173                    '</p>'. 
    171174           
    172175          '<p>'.__('To upgrade your Dotclear installation simply click on the following button. '. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map