Skip to content

Commit

Permalink
Badge: Fix WAC handling for sub paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Feb 19, 2024
1 parent bcfbdb1 commit e8d1961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Badge/classes/class.ilBadgeWAC.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function canBeDelivered(ilWACPath $ilWACPath)
return false;
}

if (!preg_match('@ilBadge\/badge(tmpl)?_(\d+)\/@ui', $ilWACPath->getPath())) {
if (!preg_match('@ilBadge\/(\d+\/)*?badge(tmpl)?_(\d+)\/@ui', $ilWACPath->getPath())) {
return false;
}

Expand Down

0 comments on commit e8d1961

Please sign in to comment.