From 3a22527cdb6aed5bbf337e64c2a2eae5647f8b14 Mon Sep 17 00:00:00 2001 From: defacer Date: Sat, 5 Mar 2005 20:18:45 +0000 Subject: [PATCH] Changing some hardwired filenames and strings for the transition to "timezones" --- admin/timezones.html | 2 +- admin/timezones.php | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/admin/timezones.html b/admin/timezones.html index 3d04f330229..e548c876050 100644 --- a/admin/timezones.html +++ b/admin/timezones.html @@ -1,5 +1,5 @@ -
+

diff --git a/admin/timezones.php b/admin/timezones.php index f5b926a4546..4ba9c0b5121 100644 --- a/admin/timezones.php +++ b/admin/timezones.php @@ -21,7 +21,7 @@ $stradministration = get_string('administration'); $strconfiguration = get_string('configuration'); $strcalendarsettings = get_string('calendarsettings', 'admin'); - $strcalendardstpresets = get_string('dstpresets', 'admin'); + $strcalendardstpresets = get_string('timezones', 'admin'); print_header("$site->shortname: $strcalendardstpresets", "$site->fullname", "$stradministration -> ". @@ -74,7 +74,7 @@ $presetid = optional_param('preset', 0, PARAM_INT); $preset = get_record('dst_preset', 'id', $presetid); if($preset !== false) { - // This variable used inside dst_edit.html + // This variable used inside timezone_edit.html $weekdays = array( -1 => get_string('day', 'calendar'), 0 => get_string('sunday', 'calendar'), @@ -116,10 +116,10 @@ if($preset !== false) { print_heading(get_string('confirmation', 'admin')); if(!empty($CFG->calendar_dstforusers) && $preset->id == $CFG->calendar_dstforusers) { - notice_yesno(get_string('confirmdeletedstdefault', 'admin', $preset->name), 'dst.php?action=delete&preset='.$presetid.'&sesskey='.$USER->sesskey, 'dst.php?sesskey='.$USER->sesskey); + notice_yesno(get_string('confirmdeletedstdefault', 'admin', $preset->name), 'timezones.php?action=delete&preset='.$presetid.'&sesskey='.$USER->sesskey, 'dst.php?sesskey='.$USER->sesskey); } else { - notice_yesno(get_string('confirmdeletedst', 'admin', $preset->name), 'dst.php?action=delete&preset='.$presetid.'&sesskey='.$USER->sesskey, 'dst.php?sesskey='.$USER->sesskey); + notice_yesno(get_string('confirmdeletedst', 'admin', $preset->name), 'timezones.php?action=delete&preset='.$presetid.'&sesskey='.$USER->sesskey, 'timezones.php?sesskey='.$USER->sesskey); } } else { @@ -127,7 +127,7 @@ } break; case 'edit': - // These variables are used inside dst_edit.html + // These variables are used inside timezone_edit.html $preset = new stdClass; $preset->id = optional_param('preset', 0, PARAM_INT); case 'add': @@ -179,7 +179,7 @@ insert_record('dst_preset', $preset); } - redirect('dst.php'); + redirect('timezones.php'); } else { $errorhtml = '
'.get_string('therewereerrors', 'admin').':
    '; @@ -201,10 +201,10 @@ 5 => get_string('friday', 'calendar'), 6 => get_string('saturday', 'calendar') ); - print_heading(get_string('editingdstpreset', 'admin')); + print_heading(get_string('editingtimezone', 'admin')); echo $errorhtml; print_simple_box_start('center', '70%'); - include('./dst_edit.html'); + include('./timezone_edit.html'); print_simple_box_end(); break; @@ -222,7 +222,7 @@ } } print_heading($strcalendardstpresets); - include('./dst.html'); + include('./timezones.html'); } print_footer();