MDL-34290 repository_equella: do not download files when not needed
commit120300fb99dafaa47d028001167a061bd5707f92
authorMarina Glancy <marina@moodle.com>
Tue, 31 Jul 2012 02:57:54 +0000 (31 10:57 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 29 Aug 2012 05:12:03 +0000 (29 13:12 +0800)
tree740f47d1948524c9d67ca2652003663a5e583f39
parenta5fe04b62bf48126646841fb8bd03ccf6f31864e
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