mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
changed param_alpha to param_notags, otherwise can not support tags in non-lation
This commit is contained in:
parent
eccfc1cac0
commit
0dc2e2aefc
@ -11,7 +11,7 @@ switch ($mode) {
|
||||
die('you can not add official tags');
|
||||
}
|
||||
|
||||
if (($otag = optional_param('otag', '', PARAM_ALPHA)) && (!get_record('tags','text',$otag))) {
|
||||
if (($otag = optional_param('otag', '', PARAM_NOTAGS)) && (!get_record('tags','text',$otag))) {
|
||||
$tag->userid = $USER->id;
|
||||
$tag->text = $otag;
|
||||
$tag->type = 'official';
|
||||
@ -33,7 +33,7 @@ switch ($mode) {
|
||||
error ('you can not add tags');
|
||||
}
|
||||
|
||||
if (($ptag = optional_param('ptag', '', PARAM_ALPHA)) && (!get_record('tags','text',$ptag))) {
|
||||
if (($ptag = optional_param('ptag', '', PARAM_NOTAGS)) && (!get_record('tags','text',$ptag))) {
|
||||
$tag->userid = $USER->id;
|
||||
$tag->text = $ptag;
|
||||
$tag->type = 'personal';
|
||||
|
Loading…
x
Reference in New Issue
Block a user