Merge branch 'wip-MDL-46540-m27' of git://github.com/marinaglancy/moodle into MOODLE_27_STABLE
This commit is contained in:
@@ -126,6 +126,7 @@ function stats_run_query($sql, $parameters = array()) {
|
||||
*/
|
||||
function stats_cron_daily($maxdays=1) {
|
||||
global $CFG, $DB;
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
|
||||
$now = time();
|
||||
|
||||
@@ -652,6 +653,7 @@ function stats_cron_daily($maxdays=1) {
|
||||
*/
|
||||
function stats_cron_weekly() {
|
||||
global $CFG, $DB;
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
|
||||
$now = time();
|
||||
|
||||
@@ -791,6 +793,7 @@ function stats_cron_weekly() {
|
||||
*/
|
||||
function stats_cron_monthly() {
|
||||
global $CFG, $DB;
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
|
||||
$now = time();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user