Skip to content

Commit

Permalink
Updated $CFG->pagepath generation for add and delete cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyshane committed Mar 3, 2006
1 parent cc1d322 commit d2555ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion course/mod.php
Expand Up @@ -511,6 +511,7 @@
$pageheading = get_string("updatinga", "moodle", $fullmodulename);
}
$strnav = "<a href=\"$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id\">".format_string($form->name,true)."</a> ->";

$CFG->pagepath = 'mod/'.$module->name.'/mod';

} else if (isset_param('duplicate') and confirm_sesskey()) { // value = course module
Expand Down Expand Up @@ -616,7 +617,13 @@
}
$strnav = '';

$CFG->pagepath = 'mod/'.$module->name.'/mod';
$CFG->pagepath = 'mod/'.$module->name;
if (!empty($type)) {
$CFG->pagepath .= '/' . $type;
}
else {
$CFG->pagepath .= '/mod';
}

} else {
error("No action was specfied");
Expand Down

0 comments on commit d2555ce

Please sign in to comment.