MDL-11075 Now saving to temp file, then outputting using filelib's readfile_chunked...
[moodle-pu.git] / tag / tag_autocomplete.php
blobc3daab8070870250806d1185c72d0df511dbda0c
1 <?php // $Id$
3 require_once('lib.php');
5 if( empty($CFG->usetags)) {
6 error(get_string('tagsaredisabled', 'tag'));
9 $query = optional_param('query', 0, PARAM_TEXT);
10 $query = tag_normalize($query);
12 $similar_tags = similar_tags($query);
14 $count = 0;
15 foreach ($similar_tags as $tag){
16 echo tag_display_name($tag) . "\t" . $tag->id . "\n";