From f58a15dee22fcf4864e1569eb7d7680a9dafef3c Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 1 Feb 2005 06:40:50 +0000 Subject: [PATCH] That link looks a little silly if we are viewing the quiz... --- blocks/quiz_results/block_quiz_results.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/blocks/quiz_results/block_quiz_results.php b/blocks/quiz_results/block_quiz_results.php index eebcb3ed37..eb32eb87f5 100644 --- a/blocks/quiz_results/block_quiz_results.php +++ b/blocks/quiz_results/block_quiz_results.php @@ -151,7 +151,10 @@ class block_quiz_results extends block_base { // Ready for output! $gradeformat = intval(empty($this->config->gradeformat) ? GRADE_FORMAT_PCT : $this->config->gradeformat); - $this->content->text .= '

'.$quiz->name.'

'; + if($this->instance->pagetype != PAGE_QUIZ_VIEW) { + // Don't show header and link to the quiz if we ARE at the quiz... + $this->content->text .= '

'.$quiz->name.'

'; + } $rank = 0; if(!empty($best)) { @@ -256,7 +259,10 @@ class block_quiz_results extends block_base { $gradeformat = intval(empty($this->config->gradeformat) ? GRADE_FORMAT_PCT : $this->config->gradeformat); - $this->content->text .= '

'.$quiz->name.'

'; + if($this->instance->pagetype != PAGE_QUIZ_VIEW) { + // Don't show header and link to the quiz if we ARE at the quiz... + $this->content->text .= '

'.$quiz->name.'

'; + } $rank = 0; if(!empty($best)) { -- 2.39.5