Changeset 1422:fe4e2c4c0fc6
- Timestamp:
- 08/17/13 09:19:53 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r1399 r1422 202 202 ); 203 203 204 # Dotclear updates notifications 205 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS)) 206 { 207 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 208 $new_v = $updater->check(DC_VERSION); 209 $version_info = $new_v ? $updater->getInfoURL() : ''; 210 211 if ($updater->getNotify() && $new_v) { 212 $message = 213 '<div><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '. 214 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'. 215 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 216 ($version_info ? ' </li><li><a href="'.$version_info.'">'.__('information about this version').'</a>' : ''). 217 '</li></ul></div>'; 218 dcPage::message($message,false,true); 219 } 220 } 221 204 222 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { 205 223 echo … … 249 267 # Dashboard columns (processed first, as we need to know the result before displaying the icons.) 250 268 $dashboardItems = ''; 251 252 # Dotclear updates notifications253 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS))254 {255 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions');256 $new_v = $updater->check(DC_VERSION);257 $version_info = $new_v ? $updater->getInfoURL() : '';258 259 if ($updater->getNotify() && $new_v) {260 $dashboardItems .=261 '<div id="upg-notify" class="static-msg"><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '.262 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'.263 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'.264 ($version_info ? ' </li><li><a href="'.$version_info.'">'.__('information about this version').'</a>' : '').265 '</li></ul></div>';266 }267 }268 269 269 270 # Errors modules notifications
Note: See TracChangeset
for help on using the changeset viewer.