updated context, metatag, imagestyleflush, browscap

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-05 16:43:45 +01:00
parent 7aeabebddf
commit 3413d81bb8
187 changed files with 14704 additions and 1871 deletions

View File

@@ -48,21 +48,18 @@ function browscap_help($path, $arg) {
* Implements hook_cron().
*/
function browscap_cron() {
if (variable_get('browscap_enable_automatic_updates', TRUE) == TRUE) {
if (variable_get('browscap_enable_automatic_updates', FALSE)) {
// Check the current update timer.
$automatic_update_timer = variable_get('browscap_automatic_updates_timer', 604800);
// Check when the last update occurred.
$last_imported = variable_get('browscap_imported', REQUEST_TIME);
$last_imported = variable_get('browscap_imported', 0);
// Update the browscap data if the amount of time specified by the update
// timer has passed.
if (($last_imported + $automatic_update_timer) < REQUEST_TIME) {
// Update the browscap information.
_browscap_import();
// Record when the browscap information was updated.
variable_set('browscap_imported', REQUEST_TIME);
}
}
}