Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 52... Línea 52...
52
        if (has_capability('mod/feedback:viewreports', $this->context)) {
52
        if (has_capability('mod/feedback:viewreports', $this->context)) {
53
            $reporturl = new moodle_url('/mod/feedback/show_entries.php', $this->urlparams);
53
            $reporturl = new moodle_url('/mod/feedback/show_entries.php', $this->urlparams);
54
            $options[$reporturl->out(false)] = get_string('show_entries', 'feedback');
54
            $options[$reporturl->out(false)] = get_string('show_entries', 'feedback');
55
            $selected = $this->currenturl->compare($reporturl, URL_MATCH_BASE) ? $reporturl : $this->currenturl;
55
            $selected = $this->currenturl->compare($reporturl, URL_MATCH_BASE) ? $reporturl : $this->currenturl;
Línea 56... Línea 56...
56
 
56
 
57
            if ($this->feedback->anonymous == FEEDBACK_ANONYMOUS_NO && $this->course != SITEID) {
57
            if ($this->feedback->anonymous == FEEDBACK_ANONYMOUS_NO && $this->course->id != SITEID) {
58
                $nonrespondenturl = new moodle_url('/mod/feedback/show_nonrespondents.php', $this->urlparams);
58
                $nonrespondenturl = new moodle_url('/mod/feedback/show_nonrespondents.php', $this->urlparams);
59
                $options[$nonrespondenturl->out(false)] = get_string('show_nonrespondents', 'feedback');
59
                $options[$nonrespondenturl->out(false)] = get_string('show_nonrespondents', 'feedback');
60
                $selected = $this->currenturl->compare($nonrespondenturl, URL_MATCH_BASE) ? $nonrespondenturl : $this->currenturl;;
60
                $selected = $this->currenturl->compare($nonrespondenturl, URL_MATCH_BASE) ? $nonrespondenturl : $this->currenturl;;