Issue 1921: Disable the auto update
This commit is contained in:
parent
a8ab1bc947
commit
f406e5ddbd
2 changed files with 13 additions and 5 deletions
5
boot.php
5
boot.php
|
@ -734,6 +734,11 @@ if(! class_exists('App')) {
|
|||
|
||||
function init_pagehead() {
|
||||
$interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000);
|
||||
|
||||
// If the update is "deactivated" set it to the highest integer number (~24 days)
|
||||
if ($interval < 0)
|
||||
$interval = 2147483647;
|
||||
|
||||
if($interval < 10000)
|
||||
$interval = 40000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue