From: fiedorow Date: Fri, 31 Dec 2004 16:12:58 +0000 (+0000) Subject: fixing a couple of instances of hardcoded /admin/ X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=06870aa32430d43d3106adf008757444c4be9573;p=moodle.git fixing a couple of instances of hardcoded /admin/ --- diff --git a/admin/lang.php b/admin/lang.php index d062af6f7e..1a61e9eddb 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -27,7 +27,7 @@ case "missing": $navigation = "$strlanguage -> $strmissingstrings"; $title = $strmissingstrings; - $button = '
'. + $button = ''. ''. ''. '
'; @@ -35,7 +35,7 @@ case "compare": $navigation = "$strlanguage -> $strcomparelanguage"; $title = $strcomparelanguage; - $button = '
'. + $button = ''. ''. ''. '
'; @@ -60,7 +60,7 @@ echo "
"; echo "$strcurrentlanguage:"; echo ""; - echo popup_form ("$CFG->wwwroot/admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", true); + echo popup_form ("$CFG->wwwroot/$CFG->admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", true); echo "
"; print_heading("sesskey\">$strmissingstrings"); print_heading("sesskey\">$strcomparelanguage"); diff --git a/mod/glossary/formats.php b/mod/glossary/formats.php index c218603653..cc8a7c1ffb 100644 --- a/mod/glossary/formats.php +++ b/mod/glossary/formats.php @@ -31,7 +31,7 @@ } update_record("glossary_formats",$displayformat); } - redirect("../../admin/module.php?sesskey=$USER->sesskey&module=glossary#formats"); + redirect("../../$CFG->admin/module.php?sesskey=$USER->sesskey&module=glossary#formats"); die; } elseif ( $mode == 'edit' and $form) { @@ -43,7 +43,7 @@ $displayformat->sortorder = $form->sortorder; update_record("glossary_formats",$displayformat); - redirect("../../admin/module.php?sesskey=$USER->sesskey&module=glossary#formats"); + redirect("../../$CFG->admin/module.php?sesskey=$USER->sesskey&module=glossary#formats"); die; } @@ -54,9 +54,9 @@ $strdisplayformats = get_string("displayformats","glossary"); print_header("$strmodulename: $strconfiguration", $site->fullname, - "$stradmin -> ". - "$strconfiguration -> ". - "$strmanagemodules -> sesskey\">$strmodulename -> $strdisplayformats"); + "admin/index.php\">$stradmin -> ". + "admin/configure.php\">$strconfiguration -> ". + "admin/modules.php\">$strmanagemodules -> admin/module.php?module=glossary&sesskey=$USER->sesskey\">$strmodulename -> $strdisplayformats"); print_heading($strmodulename . ': ' . get_string("displayformats","glossary")); diff --git a/theme/index.php b/theme/index.php index e8c8caccbd..03fd1b6014 100644 --- a/theme/index.php +++ b/theme/index.php @@ -39,8 +39,8 @@ $strthemesaved = get_string("themesaved"); print_header("$site->shortname: $strthemes", $site->fullname, - "wwwroot/admin/index.php\">$stradministration -> ". - "wwwroot/admin/configure.php\">$strconfiguration -> $strthemes"); + "wwwroot/$CFG->admin/index.php\">$stradministration -> ". + "wwwroot/$CFG->admin/configure.php\">$strconfiguration -> $strthemes"); if ($choose and confirm_sesskey()) { if (set_config("theme", $choose)) {