MDL-27037 wiki : fixed whitespace.
authorAparup Banerjee <aparup@moodle.com>
Fri, 11 Nov 2011 05:27:27 +0000 (13:27 +0800)
committerAparup Banerjee <aparup@moodle.com>
Fri, 11 Nov 2011 05:28:46 +0000 (13:28 +0800)
mod/wiki/pagelib.php

index 0f6da3c..aa36d43 100644 (file)
@@ -169,7 +169,7 @@ abstract class page_wiki {
             $currentgroup = groups_get_activity_group($PAGE->cm);
             $manage = has_capability('mod/wiki:managewiki', $PAGE->cm->context);
             $edit = has_capability('mod/wiki:editpage', $PAGE->context);
             $currentgroup = groups_get_activity_group($PAGE->cm);
             $manage = has_capability('mod/wiki:managewiki', $PAGE->cm->context);
             $edit = has_capability('mod/wiki:editpage', $PAGE->context);
-            if (!$manage and !($edit and groups_is_member($currentgroup))) { 
+            if (!$manage and !($edit and groups_is_member($currentgroup))) {
                 unset($this->tabs['edit']);
             }
         } else {
                 unset($this->tabs['edit']);
             }
         } else {