Skip to content

Commit

Permalink
MDL-19812 Converted calls to popup_form()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 10, 2009
1 parent c9472f4 commit d87b37c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/lesson/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,11 @@ function lesson_print_page_actions($cmid, $page, $printmove, $printaddpage = fal
$options['addendofbranch&sesskey='.sesskey()] = get_string('endofbranch', 'lesson');
$options['addpage'] = get_string('question', 'lesson');
// Base url
$common = "$CFG->wwwroot/mod/lesson/lesson.php?id=$cmid&pageid=$page->id&action=";
$common = "$CFG->wwwroot/mod/lesson/lesson.php?id=$cmid&pageid=$page->id";
$select = moodle_select::make_popup_form($common, 'action', $options, "addpage_$page->id");
$select->nothinglabel = get_string('addpage', 'lesson').'...';

$actions[] = popup_form($common, $options, "addpage_$page->id", '', get_string('addpage', 'lesson').'...', '', '', true);
$actions[] = $OUTPUT->select($select);
}
}

Expand Down

0 comments on commit d87b37c

Please sign in to comment.