mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Get rid of the "define custom timezone" button.
This commit is contained in:
parent
b539242ab5
commit
e2d282235f
@ -78,8 +78,7 @@
|
||||
<td>
|
||||
<div><?php print_string('helpmanagetimezones', 'admin'); ?></div>
|
||||
<p>
|
||||
<input type="submit" name="mode_timezones" value="<?php print_string('managetimezones', 'admin'); ?>..." />
|
||||
<input type="submit" name="mode_dst_update" value="<?php print_string('updatetimezones', 'admin'); ?>..." />
|
||||
<input type="submit" name="mode_timezone_update" value="<?php print_string('updatetimezones', 'admin'); ?>..." />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -29,15 +29,10 @@
|
||||
/// If data submitted, process and store
|
||||
|
||||
if(($form = data_submitted()) && confirm_sesskey()) {
|
||||
if(isset($form->mode_dst_update)) {
|
||||
if(isset($form->mode_timezone_update)) {
|
||||
redirect('dst_update.php');
|
||||
die();
|
||||
}
|
||||
if(isset($form->mode_timezones)) {
|
||||
// Move to DST presets configuration
|
||||
redirect('timezones.php');
|
||||
die();
|
||||
}
|
||||
// Normal configuration, just save the variables
|
||||
if(isset($form->adminseesallcourses)) {
|
||||
set_config('calendar_adminseesall', intval($form->adminseesallcourses) != 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user