MDL-34290 repository API: do not confuse source and reference
authorMarina Glancy <marina@moodle.com>
Tue, 31 Jul 2012 02:17:07 +0000 (10:17 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 29 Aug 2012 03:56:14 +0000 (11:56 +0800)
commit59cb75985017b2852a35876d4e01cfc4f3ec53b3
treef10b504de9278f137213d39b7fc18567f4469242
parent2d222a3243e7bdaa912d28f49ce793ef0016b66f
MDL-34290 repository API: do not confuse source and reference

make sure that repository function get_file_source_info receives as argument the source of the file,
and get_file receives a reference;
reference is a value of DB field files_reference.reference and result of get_file_reference(source).
Fix dropbox as the only repository that have different values in those fields;
also added information about user in dropbox reference and original
repository/dropbox/lib.php
repository/filepicker.php
repository/lib.php
repository/repository_ajax.php