mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 00:33:20 +02: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),
|
'NB_PLUGINS' => count($pwg_loaded_plugins),
|
||||||
'STORAGE_USED' => l10n('%sGB', number_format($du_gb, $du_decimals)),
|
'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(),
|
'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: '|',
|
splitTitle: '|',
|
||||||
positionBy: 'bottomTop'
|
positionBy: 'bottomTop'
|
||||||
});
|
});
|
||||||
|
{/literal}
|
||||||
|
{if $CHECK_FOR_UPDATES}
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: 'ws.php',
|
url: 'ws.php',
|
||||||
@@ -34,6 +36,8 @@ jQuery().ready(function(){
|
|||||||
jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>');
|
jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
{/if}
|
||||||
|
{literal}
|
||||||
|
|
||||||
jQuery('.newsletter-subscription a').click(function() {
|
jQuery('.newsletter-subscription a').click(function() {
|
||||||
jQuery('.newsletter-subscription').hide();
|
jQuery('.newsletter-subscription').hide();
|
||||||
|
|||||||
@@ -696,6 +696,10 @@ $conf['ws_max_users_per_page'] = 1000;
|
|||||||
// Display a link to subscribe to Piwigo Announcements Newsletter
|
// Display a link to subscribe to Piwigo Announcements Newsletter
|
||||||
$conf['show_newsletter_subscription'] = true;
|
$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
|
// Number Weeks displayed on activity chart on the dashboard
|
||||||
$conf['dashboard_activity_nb_weeks'] = 4;
|
$conf['dashboard_activity_nb_weeks'] = 4;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user