]> git.mjollnir.org Git - moodle.git/commitdiff
- added tag:editblocks capability
authorluizlaydner <luizlaydner>
Sat, 11 Aug 2007 03:42:26 +0000 (03:42 +0000)
committerluizlaydner <luizlaydner>
Sat, 11 Aug 2007 03:42:26 +0000 (03:42 +0000)
tag/lib.php
tag/pagelib.php

index c057113be93e7eb1ac3c6bdc103470dfb38b83e7..7522f9ccc93bd52404c8dc69b8ccb49e78742ccf 100644 (file)
@@ -1524,7 +1524,7 @@ function print_tag_management_list($perpage='100') {
         echo '<input type="button" onclick="checknone()" value="'.get_string('deselectall').'" /> ';
         echo '<br/><br/>';
         echo '<select id="menuformaction" name="action">
-                    <option value="" selected="selected">With selected tags...</option>
+                    <option value="" selected="selected">'. get_string('withselectedtags', 'tag') .'</option>
                     <option value="reset">'. get_string('resetflag', 'tag') .'</option>
                     <option value="delete">'. get_string('delete', 'tag') .'</option>
                 </select>';
index b1ac5137591fecfa4fa181164507fed43593525c..81bb8dd99127f4f1a15e11172c749b34cfeaff79 100644 (file)
@@ -4,6 +4,7 @@ require_once($CFG->libdir.'/pagelib.php');
 require_once('lib.php');
 
 define('PAGE_TAG_INDEX',   'tag-index');
+define('TAG_FORMAT', 'tag');
 
 class page_tag extends page_base {
 
@@ -17,7 +18,7 @@ class page_tag extends page_base {
     function user_allowed_editing() {
 
     $systemcontext   = get_context_instance(CONTEXT_SYSTEM);
-    return has_capability('moodle/tag:edit', $systemcontext);        
+    return has_capability('moodle/tag:editblocks', $systemcontext);        
 
     }
 
@@ -58,7 +59,8 @@ class page_tag extends page_base {
     }
 
     function get_format_name() {
-        return 'tag';
+
+        return TAG_FORMAT;
     }
     
     //-----------  printing funtions -----------
@@ -98,4 +100,5 @@ class page_tag extends page_base {
 
 page_map_class(PAGE_TAG_INDEX, 'page_tag');
 
+
 ?>