Skip to content

Commit

Permalink
Merge pull request #63 from ubc-web-services/hotfix
Browse files Browse the repository at this point in the history
Update template.php
  • Loading branch information
occupant authored Jun 18, 2020
2 parents 4dd9adb + b495fdf commit 728166c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function megatron_id_safe($string) {
// Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
$string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
// If the first character is not a-z, add 'n' in front.
if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.
if (!ctype_lower($string[0])) { // Don't use ctype_alpha since its locale aware.
$string = 'id'. $string;
}
return $string;
Expand Down

0 comments on commit 728166c

Please sign in to comment.