mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses
This commit is contained in:
parent
b74be1a20a
commit
d3b265933a
5 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
<input type="hidden" name="y" value="<?php echo $y; ?>" />
|
||||
<input type="hidden" name="confirm" value="1" />
|
||||
<input type="hidden" name="repeats" value="0" />
|
||||
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
|
||||
|
||||
</p>
|
||||
</form>
|
||||
|
@ -29,6 +30,7 @@
|
|||
<input type="hidden" name="y" value="<?php echo $y; ?>" />
|
||||
<input type="hidden" name="confirm" value="1" />
|
||||
<input type="hidden" name="repeats" value="1" />
|
||||
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
|
||||
|
||||
</p>
|
||||
</form>
|
||||
|
@ -43,6 +45,7 @@
|
|||
<input type="hidden" name="cal_m" value="<?php echo $m; ?>" />
|
||||
<input type="hidden" name="cal_d" value="<?php echo $d; ?>" />
|
||||
<input type="hidden" name="cal_y" value="<?php echo $y; ?>" />
|
||||
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
|
||||
|
||||
</p>
|
||||
</form>
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
<input type="hidden" name="courseid" value="<?php echo $form->courseid; ?>" />
|
||||
<input type="hidden" name="format" value="<?php echo $form->format; ?>" />
|
||||
<input type="hidden" name="action" value="edit" />
|
||||
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@
|
|||
<input type="hidden" name="format" value="<?php echo $form->format; ?>" />
|
||||
<input type="hidden" name="action" value="new" />
|
||||
<input type="hidden" name="type" value="<?php echo $form->type; ?>" />
|
||||
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -31,5 +31,6 @@
|
|||
<p>
|
||||
<input type="hidden" name="action" value="new" />
|
||||
<input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />
|
||||
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
|
||||
</p>
|
||||
</form>
|
|
@ -48,6 +48,8 @@
|
|||
$cal_d = optional_param('cal_d');
|
||||
$cal_m = optional_param('cal_m');
|
||||
$cal_y = optional_param('cal_y');
|
||||
$action = optional_param('action');
|
||||
$type = optional_param('type');
|
||||
|
||||
// Initialize the session variables
|
||||
calendar_session_vars();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue