Permalink
Browse files

- Added to support for rawname column, so it is possible to keep the …

…original casing of tag names.

- a bit of refactoring
  • Loading branch information...
1 parent b26a847 commit 4f81c51d351fbf1a747acf7f0ca252ff1570b6b1 luizlaydner committed Aug 2, 2007
Showing with 131 additions and 69 deletions.
  1. +1 −0 lang/en_utf8/tag.php
  2. +3 −3 tag/edit.php
  3. +1 −4 tag/index.php
  4. +122 −58 tag/lib.php
  5. +2 −2 tag/manage.php
  6. +1 −1 tag/tag_autocomplete.php
  7. +1 −1 user/editadvanced.php
View
@@ -9,6 +9,7 @@
$string['flag'] = 'Flag';
$string['flagasinappropriate'] = 'Flag as inappropriate';
$string['helprelatedtags'] = 'Comma separated related tags';
+$string['id'] = 'id';
$string['managetags'] = 'Manage Tags';
$string['name'] = 'Name';
$string['noresultsfor'] = 'No results for \"$a\"';
View
@@ -13,11 +13,11 @@
$tagid = required_param('id', PARAM_INT); // user id
$tag = tag_by_id($tagid);
-$tagname = /*ucwords*/($tag->name);
+$tagname = tag_display_name($tag);
-//Editing a tag requires moodle/tag:edittags capability
+//Editing a tag requires moodle/tag:edit capability
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
-require_capability('moodle/tag:edittags', $systemcontext);
+require_capability('moodle/tag:edit', $systemcontext);
// set the relatedtags field of the $tag object that will be passed to the form
$tag->relatedtags = tag_names_csv( get_item_tags('tag',$tagid) );
View
@@ -20,7 +20,7 @@
redirect($CFG->wwwroot.'/tag/search.php');
}
-$tagname = mb_convert_case($tag->name, MB_CASE_TITLE, "UTF-8");
+$tagname = tag_display_name($tag);
$navlinks = array();
$navlinks[] = array('name' => get_string('tags', 'tag'), 'link' => "{$CFG->wwwroot}/tag/search.php", 'type' => '');
@@ -54,9 +54,6 @@
print_tagged_users_table($tag, 4, $userpage * $perpage, $perpage);
}
-//print_box_start('generalbox', 'small-tag-cloud-box');
-// print_tag_cloud(15,170,80);
-//print_box_end();
print_footer();
Oops, something went wrong.

0 comments on commit 4f81c51

Please sign in to comment.