Skip to content

Commit

Permalink
Merge branch 'MDL-50272' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 authored and sarjona committed Jul 13, 2023
2 parents 256f83c + 2974f5a commit 5156669
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repository/lib.php
Expand Up @@ -1789,9 +1789,12 @@ public function import_external_file_contents(stored_file $file, $maxbytes = 0)
*
* @param string $source encoded and serialized data of file
* @return int file size in bytes
*
* @deprecated since Moodle 4.3
*/
public function get_file_size($source) {
// TODO MDL-33297 remove this function completely?
debugging(__FUNCTION__ . ' is deprecated, please do not use it any more', DEBUG_DEVELOPER);

$browser = get_file_browser();
$params = unserialize(base64_decode($source));
$contextid = clean_param($params['contextid'], PARAM_INT);
Expand Down
3 changes: 3 additions & 0 deletions repository/upgrade.txt
Expand Up @@ -3,6 +3,9 @@ information provided here is intended especially for developers. Full
details of the repository API are available on Moodle docs:
http://docs.moodle.org/dev/Repository_API

=== 4.3 ===
* The base `repository` class method `get_file_size` has been deprecated and should not be used any more

=== 4.0 ===
* The repository_boxnet has been completely removed.
* The repository_picasa has been completely removed (Picasa is discontinued since 2016).
Expand Down

0 comments on commit 5156669

Please sign in to comment.