Skip to content

Commit

Permalink
MDL-19794 Updated topic and course format's use of popup_form for tem…
Browse files Browse the repository at this point in the history
…porarily working with new outputlib code. Will eventually need proper upgrading.
  • Loading branch information
nicolasconnault committed Jul 30, 2009
1 parent 4969084 commit 69e80c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions course/format/topics/format.php
Expand Up @@ -155,7 +155,7 @@
} else {
$strsummary = ' - '.substr($strsummary, 0, 60).'...';
}
$sectionmenu['topic='.$section] = s($section.$strsummary);
$sectionmenu[$section] = s($section.$strsummary);
}
$section++;
continue;
Expand Down Expand Up @@ -252,7 +252,7 @@

if (!empty($sectionmenu)) {
echo '<div class="jumpmenu">';
echo popup_form($CFG->wwwroot.'/course/view.php?id='.$course->id.'&amp;', $sectionmenu,
echo popup_form($CFG->wwwroot.'/course/view.php?id='.$course->id.'&amp;topic=', $sectionmenu,
'sectionmenu', '', get_string('jumpto'), '', '', true);
echo '</div>';
}
4 changes: 2 additions & 2 deletions course/format/weeks/format.php
Expand Up @@ -150,7 +150,7 @@

if (!empty($displaysection) and $displaysection != $section) { // Check this week is visible
if ($showsection) {
$sectionmenu['week='.$section] = s("$strweek $section | $weekday - $endweekday");
$sectionmenu[$section] = s("$strweek $section | $weekday - $endweekday");
}
$section++;
$weekdate = $nextweekdate;
Expand Down Expand Up @@ -244,7 +244,7 @@

if (!empty($sectionmenu)) {
echo '<div class="jumpmenu">';
echo popup_form($CFG->wwwroot.'/course/view.php?id='.$course->id.'&amp;', $sectionmenu,
echo popup_form($CFG->wwwroot.'/course/view.php?id='.$course->id.'&amp;week=', $sectionmenu,
'sectionmenu', '', get_string('jumpto'), '', '', true);
echo '</div>';
}

0 comments on commit 69e80c0

Please sign in to comment.