Dotclear


Ignore:
Timestamp:
07/24/17 11:29:07 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add an (super-admin) option to disable Dotclear updates check — update locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r3554 r3557  
    7171     } 
    7272     $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean'); 
     73} 
     74if (!$core->auth->user_prefs->dashboard->prefExists('nodcupdate')) { 
     75     if (!$core->auth->user_prefs->dashboard->prefExists('nodcupdate',true)) { 
     76          $core->auth->user_prefs->dashboard->put('nodcupdate',false,'boolean','',null,true); 
     77     } 
     78     $core->auth->user_prefs->dashboard->put('nodcupdate',false,'boolean'); 
    7379} 
    7480 
     
    206212 
    207213# Dotclear updates notifications 
    208 if ($core->auth->isSuperAdmin() && !DC_NOT_UPDATE && is_readable(DC_DIGESTS)) 
     214if ($core->auth->isSuperAdmin() && !DC_NOT_UPDATE && is_readable(DC_DIGESTS) && !$core->auth->user_prefs->dashboard->nodcupdate) 
    209215{ 
    210216     $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map