Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 75... Línea 75...
75
     *
75
     *
76
     * @return \moodle_url
76
     * @return \moodle_url
77
     */
77
     */
78
    public function get_url() {
78
    public function get_url() {
79
        $cat = $this->other['categoryid'] . ',' . $this->contextid;
79
        $cat = $this->other['categoryid'] . ',' . $this->contextid;
80
        if ($this->courseid) {
-
 
81
            if ($this->contextlevel == CONTEXT_MODULE) {
-
 
-
 
80
 
82
                return new \moodle_url('/question/edit.php', ['cmid' => $this->contextinstanceid, 'cat' => $cat]);
81
        return new \moodle_url('/question/edit.php', ['cmid' => $this->contextinstanceid, 'cat' => $cat]);
83
            }
-
 
84
            return new \moodle_url('/question/edit.php', ['courseid' => $this->courseid, 'cat' => $cat]);
-
 
85
        }
-
 
86
        return new \moodle_url('/question/edit.php',
-
 
87
                                ['courseid' => SITEID, 'cat' => $cat]);
-
 
88
    }
82
    }
Línea 89... Línea 83...
89
 
83
 
90
    /**
84
    /**
91
     * Custom validations.
85
     * Custom validations.