Merge branch 'wip-MDL-46038-m27' of git://github.com/marinaglancy/moodle into MOODLE_27_STABLE
This commit is contained in:
@@ -423,6 +423,7 @@ class repository_boxnet extends repository {
|
||||
* @return boolean
|
||||
*/
|
||||
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;
|
||||
|
||||
@@ -191,7 +191,7 @@ class repository_equella extends repository {
|
||||
}
|
||||
|
||||
public function sync_reference(stored_file $file) {
|
||||
global $USER;
|
||||
global $USER, $CFG;
|
||||
if ($file->get_referencelastsync() + DAYSECS > time() || !$this->connection_result()) {
|
||||
// Synchronise not more often than once a day.
|
||||
// if we had several unsuccessfull attempts to connect to server - do not try any more.
|
||||
|
||||
Reference in New Issue
Block a user