Merge branch 'wip-MDL-46038-m27' of git://github.com/marinaglancy/moodle into MOODLE_27_STABLE

This commit is contained in:
Damyon Wiese
2014-06-24 13:10:52 +08:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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;
+1 -1
View File
@@ -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.