Merge branch 'MDL-33808' of git://github.com/danpoltawski/moodle
[moodle.git] / repository / lib.php
index 2d6717b..f897bf2 100644 (file)
@@ -1233,6 +1233,9 @@ abstract class repository {
      * @return string|null
      */
     public function get_file_source_info($url) {
      * @return string|null
      */
     public function get_file_source_info($url) {
+        if ($this->has_moodle_files()) {
+            return $this->get_reference_details($url, 0);
+        }
         return $url;
     }
 
         return $url;
     }