MDL-34290 repository_equella: do not download files when not needed
authorMarina Glancy <marina@moodle.com>
Tue, 31 Jul 2012 02:57:54 +0000 (10:57 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 29 Aug 2012 03:56:15 +0000 (11:56 +0800)
commitfa746096cfcd5ab1ea7089ec5715ee42b3328c5d
tree2c8f46512c5480df152497042d53e1a102d1e505
parentf24b0f69eee92cb49b9ab2036f5c2edbe5addcba
MDL-34290 repository_equella: do not download files when not needed

repository_equella::get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation),
does not use cache_file class (content is cached in moodle filepool if needed);
also repository_equella has counter of unsuccessfull connect attempts and do not perform any more if 3 failed
(within one request)
repository/equella/lib.php