updated context, metatag, imagestyleflush, browscap
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user