From: moodler Date: Wed, 9 Aug 2006 13:39:44 +0000 (+0000) Subject: Removed tabs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bee7ee3815bae62469d33fddefabb4c5d58d67cd;p=moodle.git Removed tabs --- diff --git a/mod/survey/report.php b/mod/survey/report.php index 36ef533834..ace7e24678 100644 --- a/mod/survey/report.php +++ b/mod/survey/report.php @@ -21,7 +21,7 @@ require_login($course->id, false); - $context = get_context_instance(CONTEXT_MODULE, $cm->id); + $context = get_context_instance(CONTEXT_MODULE, $cm->id); //has_capability('mod/survey:readresponses', $context->id, true); if (! $survey = get_record("survey", "id", $cm->instance)) { @@ -86,7 +86,7 @@ echo "    $strquestions"; echo "    $course->students"; if (has_capability('mod/survey:download', $context->id)) { - echo "    $strdownload"; + echo "    $strdownload"; } if (empty($action)) { $action = "summary"; @@ -95,8 +95,8 @@ echo "$strquestions"; echo "    $course->students"; if (has_capability('mod/survey:download', $context->id)) { - echo "    $strdownload"; - } + echo "    $strdownload"; + } if (empty($action)) { $action = "questions"; } @@ -408,7 +408,7 @@ break; case "download": - has_capability('mod/survey:download', $context->id, true); + has_capability('mod/survey:download', $context->id, true); print_heading($strdownload); echo '

'.get_string("downloadinfo", "survey").'

'; diff --git a/mod/survey/save.php b/mod/survey/save.php index e8a3944fd0..9f817c2ce6 100644 --- a/mod/survey/save.php +++ b/mod/survey/save.php @@ -22,10 +22,10 @@ require_login($course->id, false, $cm); - $context = get_context_instance(CONTEXT_MODULE, $cm->id); + $context = get_context_instance(CONTEXT_MODULE, $cm->id); has_capability('mod/survey:participate', $context->id, true); - if (! $survey = get_record("survey", "id", $cm->instance)) { + if (! $survey = get_record("survey", "id", $cm->instance)) { error("Survey ID was incorrect"); } diff --git a/mod/survey/view.php b/mod/survey/view.php index 0ea2d35007..43d2633f35 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -44,10 +44,10 @@ //if (isteacheredit($course->id) or ($groupmode == VISIBLEGROUPS)) { if (has_capability('mod/survey:readresponses', $context->id) or ($groupmode == VISIBLEGROUPS)) { - $currentgroup = 0; + $currentgroup = 0; } - - if (isteacher($course->id)) { + + if (isteacher($course->id)) { //if (has_capability('mod/survey:readresponses', $context->id)) { $numusers = survey_count_responses($survey->id, $currentgroup); echo "
id\">".