mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-46540 stats: missing include file
Thanks to Vadim Dvorovenko for finding a bug and providing a solution
This commit is contained in:
parent
e1eb180806
commit
6bb1f0bf4c
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,7 @@ function stats_run_query($sql, $parameters = array()) {
|
||||||
*/
|
*/
|
||||||
function stats_cron_daily($maxdays=1) {
|
function stats_cron_daily($maxdays=1) {
|
||||||
global $CFG, $DB;
|
global $CFG, $DB;
|
||||||
|
require_once($CFG->libdir.'/adminlib.php');
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
|
@ -652,6 +653,7 @@ function stats_cron_daily($maxdays=1) {
|
||||||
*/
|
*/
|
||||||
function stats_cron_weekly() {
|
function stats_cron_weekly() {
|
||||||
global $CFG, $DB;
|
global $CFG, $DB;
|
||||||
|
require_once($CFG->libdir.'/adminlib.php');
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
|
@ -791,6 +793,7 @@ function stats_cron_weekly() {
|
||||||
*/
|
*/
|
||||||
function stats_cron_monthly() {
|
function stats_cron_monthly() {
|
||||||
global $CFG, $DB;
|
global $CFG, $DB;
|
||||||
|
require_once($CFG->libdir.'/adminlib.php');
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue