3 require_once('../config.php');
4 require_once('lib.php');
8 if (empty($CFG->usetags
)) {
9 print_error('tagsaredisabled', 'tag');
12 $query = optional_param('query', '', PARAM_RAW
);
14 if ($similar_tags = tag_autocomplete($query)) {
15 foreach ($similar_tags as $tag) {
16 echo $tag->name
. "\t" . tag_display_name($tag) . "\n";