mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1358 automatic call to pwg.extensions.checkUpdates can be deactivated
This commit is contained in:
@@ -156,6 +156,7 @@ $template->assign(
|
||||
'NB_PLUGINS' => count($pwg_loaded_plugins),
|
||||
'STORAGE_USED' => l10n('%sGB', number_format($du_gb, $du_decimals)),
|
||||
'U_QUICK_SYNC' => PHPWG_ROOT_PATH.'admin.php?page=site_update&site=1&quick_sync=1&pwg_token='.get_pwg_token(),
|
||||
'CHECK_FOR_UPDATES' => $conf['dashboard_check_for_updates'],
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ jQuery().ready(function(){
|
||||
splitTitle: '|',
|
||||
positionBy: 'bottomTop'
|
||||
});
|
||||
{/literal}
|
||||
{if $CHECK_FOR_UPDATES}
|
||||
jQuery.ajax({
|
||||
type: 'GET',
|
||||
url: 'ws.php',
|
||||
@@ -34,6 +36,8 @@ jQuery().ready(function(){
|
||||
jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>');
|
||||
}
|
||||
});
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
jQuery('.newsletter-subscription a').click(function() {
|
||||
jQuery('.newsletter-subscription').hide();
|
||||
|
||||
@@ -696,6 +696,10 @@ $conf['ws_max_users_per_page'] = 1000;
|
||||
// Display a link to subscribe to Piwigo Announcements Newsletter
|
||||
$conf['show_newsletter_subscription'] = true;
|
||||
|
||||
// Check for available updates on Piwigo or extensions, performed each time
|
||||
// the dashboard is displayed
|
||||
$conf['dashboard_check_for_updates'] = true;
|
||||
|
||||
// Number Weeks displayed on activity chart on the dashboard
|
||||
$conf['dashboard_activity_nb_weeks'] = 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user