Skip to content

Commit

Permalink
Merge branch 'dev41' of xdev.arnes.si:sio/skupnost/moodle-mod_booking…
Browse files Browse the repository at this point in the history
… into dev41
  • Loading branch information
atlet committed Mar 27, 2024
2 parents bf38209 + 1c9d18c commit 7915d37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/output/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ public function get_rendered_myinstitution_table(string $institution) {

$institutionclean = str_replace(['č', 'ž', 'š', 'Č', 'Ž', 'Š'], ['c', 'z', 's', 'C', 'Z', 'S'], $institution);

// Remove all other problematic characters that are not ASCII alphanumeric characters, underlines or spaces.
$institutionclean = preg_replace('#[^a-zA-Z0-9_\s]#', '', $institutionclean);

// Create the table.
$myinstitutiontable = new bookingoptions_wbtable("cmid_{$cmid}_institution_{$institutionclean} myinstitutiontable", $booking);

Expand Down

0 comments on commit 7915d37

Please sign in to comment.