MDL-43311 Repository: Added missing global CFG

This commit is contained in:
Rajesh Taneja
2013-12-10 16:50:10 +08:00
parent c36a2401ab
commit c3df05a9f9
+2
View File
@@ -551,6 +551,8 @@ class repository_dropbox extends repository {
}
public function sync_reference(stored_file $file) {
global $CFG;
if ($file->get_referencelastsync() + DAYSECS > time()) {
// Synchronise not more often than once a day.
return false;