Skip to content

Commit 82b7a4b

Browse files
committed
fix: Add missing $CFG global
Without this, the get_filtered_children call will emit a warning about unset CFG being invoked. In most cases the resulting URL string is still usable.
1 parent e58a857 commit 82b7a4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

classes/file_info.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function get_children() {
115115
* @return array|int array of file_info instances or the count
116116
*/
117117
private function get_filtered_children($extensions = '*', $countonly = false, $returnemptyfolders = false) {
118+
global $CFG;
118119
$galleries = \mod_mediagallery\collection::get_public_galleries_by_contextid($this->context->id, false);
119120

120121
$children = array();

0 commit comments

Comments
 (0)