MDL-34290 repository API: do not confuse source and reference
commit56e7d14f26b476ae6fb7e8bfba61052dca711ad6
authorMarina Glancy <marina@moodle.com>
Tue, 31 Jul 2012 02:17:07 +0000 (31 10:17 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 29 Aug 2012 05:12:01 +0000 (29 13:12 +0800)
tree42d47f8eb45ba521e62d089041366f5ef512177c
parentc9fa5b1c05d76695f5be96f2ab23d12d21017030
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