From 5fc1ea543bc00a8830a20c0fe7e505b759f10fa6 Mon Sep 17 00:00:00 2001 From: scyrma Date: Tue, 25 Mar 2008 02:00:03 +0000 Subject: [PATCH] MDL-14041 - Hide 'manage tags' when access is not permitted (merge) --- tag/search.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tag/search.php b/tag/search.php index 53d50fa62c..42da065987 100644 --- a/tag/search.php +++ b/tag/search.php @@ -21,13 +21,12 @@ $navigation = build_navigation($navlinks); $systemcontext = get_context_instance(CONTEXT_SYSTEM); $manage_link = ' '; -if ( has_capability('moodle/tag:manage',$systemcontext) ) { - $manage_link = "wwwroot}/tag/manage.php\">" . get_string('managetags', 'tag') . "" ; -} print_header_simple(get_string('tags', 'tag'), '', $navigation); -echo '' ; +if ( has_capability('moodle/tag:manage',$systemcontext) ) { + echo '' ; +} print_heading(get_string('searchtags', 'tag'), '', 2); -- 2.39.5