Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mod-workshop MDL-26267 workshop_extend_navigation argument 4 is now a…

…lways going to be a cm_info object
  • Loading branch information...
commit 2addb4ba1b2ecab0b5dfe2773aea1177f88fe889 1 parent 54b7b59
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/workshop/lib.php
View
4 mod/workshop/lib.php
@@ -1305,9 +1305,9 @@ function workshop_get_file_info($browser, $areas, $course, $cm, $context, $filea
* @param navigation_node $navref An object representing the navigation tree node of the workshop module instance
* @param stdClass $course
* @param stdClass $module
- * @param stdClass $cm
+ * @param cm_info $cm
*/
-function workshop_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, stdclass $cm) {
+function workshop_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {
global $CFG;
if (has_capability('mod/workshop:submit', get_context_instance(CONTEXT_MODULE, $cm->id))) {
Please sign in to comment.
Something went wrong with that request. Please try again.