Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit f1b1062

Browse files
author
Nathan Shaaban
committed
Merge branch 'dev' of github.com:ctrlaltf24/assignmentsmanager into staging
2 parents e2f8fd2 + dc8c881 commit f1b1062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/template/miscElements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function template_button($display,$extra_button=""){
4747
}
4848

4949
function template_assignment($key_in_arr,$key,$name, $concept, $chapter, $timeAccessible, $timeHide, $timeDue, $disabled,$completed=false,$percent_complete=0,$points=0,$max_points=0){
50-
$id=str_replace(" ","",str_replace("-","",str_replace(".","",$name.$key_in_arr)));
50+
$id=str_replace(array(" ","(",")",".","#","&",";","&",",","/","\\"),"",$name.$key_in_arr);
5151
return template_card($name." (Chapter $chapter) ($concept)".($disabled?" DISABLED":""),"<div id=\"p-$id\" class=\"mdl-progress mdl-js-progress\"></div>"."<script>document.querySelector('#p-$id').addEventListener('mdl-componentupgraded', function() {
5252
this.MaterialProgress.setProgress($percent_complete);
5353
});</script>",template_ripple_a("Go to assignment",'href=noShowAssignment.php?key='.$key).($max_points!=0?"<span class=\"mdl-chip\">

0 commit comments

Comments
 (0)