Dotclear

Changeset 3812:bc19aeafa1c2 for admin


Ignore:
Timestamp:
08/17/18 11:08:51 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Allows superadmin to force check update of plugins/themes

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r3731 r3812  
    2020    $core->themes, 
    2121    $core->blog->themes_path, 
    22     $core->blog->settings->system->store_theme_url 
     22    $core->blog->settings->system->store_theme_url, 
     23    !empty($_GET['nocache']) 
    2324); 
    2425adminThemesList::$distributed_modules = explode(',', DC_DISTRIB_THEMES); 
     
    105106# -- Display modules lists -- 
    106107if ($core->auth->isSuperAdmin()) { 
     108 
     109    if (!$core->error->flag()) { 
     110        if (!empty($_GET['nocache'])) { 
     111            dcPage::success(__('Manual checking of themes update done successfully.')); 
     112        } 
     113    } 
    107114 
    108115    # Updated modules from repo 
     
    134141 
    135142            '</div>'; 
     143    } else { 
     144        echo 
     145        '<form action="' . $list->getURL('', false) . '" method="get">' . 
     146        '<p><input type="hidden" name="nocache" value="1" />' . 
     147        '<input type="submit" value="' . __('Force checking update of themes') . '" /></p>' . 
     148            '</form>'; 
    136149    } 
    137150} 
  • admin/plugins.php

    r3731 r3812  
    1616    $core->plugins, 
    1717    DC_PLUGINS_ROOT, 
    18     $core->blog->settings->system->store_plugin_url 
     18    $core->blog->settings->system->store_plugin_url, 
     19    !empty($_GET['nocache']) 
    1920); 
    2021 
     
    115116# -- Display modules lists -- 
    116117if ($core->auth->isSuperAdmin()) { 
     118 
     119    if (!$core->error->flag()) { 
     120        if (!empty($_GET['nocache'])) { 
     121            dcPage::success(__('Manual checking of plugins update done successfully.')); 
     122        } 
     123    } 
    117124 
    118125    # Updated modules from repo 
     
    144151 
    145152            '</div>'; 
     153    } else { 
     154        echo 
     155        '<form action="' . $list->getURL('', false) . '" method="get">' . 
     156        '<p><input type="hidden" name="nocache" value="1" />' . 
     157        '<input type="submit" value="' . __('Force checking update of plugins') . '" /></p>' . 
     158            '</form>'; 
    146159    } 
    147160} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map