]> git.mjollnir.org Git - moodle.git/commitdiff
changed param_alpha to param_notags, otherwise can not support tags in non-lation
authortoyomoyo <toyomoyo>
Mon, 10 Apr 2006 07:29:47 +0000 (07:29 +0000)
committertoyomoyo <toyomoyo>
Mon, 10 Apr 2006 07:29:47 +0000 (07:29 +0000)
blog/tags.php

index ce4157b94a26d46778bc3f549efb33a1da8fa6df..4c7ce12eb4c9c1c3f52cce439427dbbf01dcc96c 100755 (executable)
@@ -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';