Skip to content

Commit

Permalink
portfolio MDL-23235 removed spurious id in a moodle url for portfolio…
Browse files Browse the repository at this point in the history
…logs and fixed include
  • Loading branch information
Penny Leach committed Jul 21, 2010
1 parent 024c288 commit 834ad95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion portfolio/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
echo $OUTPUT->box_start();
$yesbutton = new single_button(new moodle_url('/portfolio/add.php', array('id' => $dataid, 'cancel' => 1, 'cancelsure' => 1, 'logreturn' => $logreturn)), get_string('yes'));
if ($logreturn) {
$nobutton = new single_button(new moodle_url('/user/portfoliologs.php', array('id' => $dataid)), get_string('no'));
$nobutton = new single_button(new moodle_url('/user/portfoliologs.php'), get_string('no'));
} else {
$nobutton = new single_button(new moodle_url('/portfolio/add.php', array('id' => $dataid)), get_string('no'));
}
Expand Down
1 change: 1 addition & 0 deletions user/portfoliologs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
}

require_once($CFG->libdir . '/portfoliolib.php');
require_once($CFG->libdir . '/portfolio/exporter.php');

$courseid = optional_param('courseid', SITEID, PARAM_INT);
$page = optional_param('page', 0, PARAM_INT);
Expand Down

0 comments on commit 834ad95

Please sign in to comment.