Permalink
Browse files

fixing some instances of hardcoded /admin/

  • Loading branch information...
1 parent ada76e0 commit ad00d9ae5b55d703af1d1164290bc3d40d5d1583 fiedorow committed Dec 30, 2004
Showing with 5 additions and 5 deletions.
  1. +5 −5 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,
- "<a href=\"../../admin/index.php\">$stradmin</a> -> ".
- "<a href=\"../../admin/configure.php\">$strconfiguration</a> -> ".
- "<a href=\"../../admin/modules.php\">$strmanagemodules</a> -> <a href=\"../../admin/module.php?module=glossary&sesskey=$USER->sesskey\">$strmodulename</a> -> $strdisplayformats");
+ "<a href=\"../../$CFG->admin/index.php\">$stradmin</a> -> ".
+ "<a href=\"../../$CFG->admin/configure.php\">$strconfiguration</a> -> ".
+ "<a href=\"../../$CFG->admin/modules.php\">$strmanagemodules</a> -> <a href=\"../../$CFG->admin/module.php?module=glossary&sesskey=$USER->sesskey\">$strmodulename</a> -> $strdisplayformats");
print_heading($strmodulename . ': ' . get_string("displayformats","glossary"));

0 comments on commit ad00d9a

Please sign in to comment.