mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
changed param_alpha to param_notags, otherwise can not support tags in non-lation
This commit is contained in:
parent
eccfc1cac0
commit
0dc2e2aefc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue