Skip to content

Commit

Permalink
[FIX] static call
Browse files Browse the repository at this point in the history
  • Loading branch information
chfsx committed Jan 17, 2025
1 parent 9f7c187 commit e46ab14
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function run(array $input, \ILIAS\BackgroundTasks\Observer $observer): Va

if ($object_type === "fold" || $object_type === "crs") {
$num_recursions = 0;
$files_from_folder = self::recurseFolder($object_ref_id, $object_name, $object_temp_dir, $num_recursions, $initiated_by_folder_action);
$files_from_folder = $this->recurseFolder($object_ref_id, $object_name, $object_temp_dir, $num_recursions, $initiated_by_folder_action);
$files = array_merge($files, $files_from_folder);
} elseif (($object_type === "file") && (($file_dirs = $this->getFileDirs(
$object_ref_id,
Expand Down Expand Up @@ -186,7 +186,7 @@ private function getFileDirs($a_ref_id, $a_file_name, $a_temp_dir)
*
* @return mixed[]
*/
private static function recurseFolder($a_ref_id, $a_folder_name, $a_temp_dir, $a_num_recursions, $a_initiated_by_folder_action): array
private function recurseFolder($a_ref_id, $a_folder_name, $a_temp_dir, $a_num_recursions, $a_initiated_by_folder_action): array
{
global $DIC;

Expand All @@ -213,7 +213,7 @@ private static function recurseFolder($a_ref_id, $a_folder_name, $a_temp_dir, $a
continue;
}
if ($child["type"] == "fold") {
$files_from_folder = self::recurseFolder($child["ref_id"], $child['title'], $temp_dir, $num_recursions, $a_initiated_by_folder_action);
$files_from_folder = $this->recurseFolder($child["ref_id"], $child['title'], $temp_dir, $num_recursions, $a_initiated_by_folder_action);
$files = array_merge($files, $files_from_folder);
} else {
if (($child["type"] === "file") && (($dirs = $this->getFileDirs($child["ref_id"], $child['title'], $temp_dir)) !== false)) {
Expand Down

0 comments on commit e46ab14

Please sign in to comment.