mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-82047 analytics: remove 32-bit integer checks for maximum time.
This commit is contained in:
parent
1291869f90
commit
f540fab1dc
@ -14,18 +14,8 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Any element analysers can analyse.
|
||||
*
|
||||
* @package core_analytics
|
||||
* @copyright 2016 David Monllao {@link http://www.davidmonllao.com}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace core_analytics;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Any element analysers can analyse.
|
||||
*
|
||||
@ -37,9 +27,8 @@ interface analysable {
|
||||
|
||||
/**
|
||||
* Max timestamp.
|
||||
* We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.
|
||||
*/
|
||||
const MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999;
|
||||
const MAX_TIME = 9999999999;
|
||||
|
||||
/**
|
||||
* The analysable unique identifier in the site.
|
||||
|
Loading…
x
Reference in New Issue
Block a user