Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing a couple of instances of hardcoded /admin/

  • Loading branch information...
commit 227f33395cb07a113d49cfdc90e59c752bee4909 1 parent 4013a66
authored
6  admin/lang.php
@@ -27,7 +27,7 @@
27 27
         case "missing":
28 28
             $navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strmissingstrings";
29 29
             $title = $strmissingstrings;
30  
-            $button = '<form target="'.$CFG->framename.'" method="get" action="'.$CFG->wwwroot.'/admin/lang.php">'.
  30
+            $button = '<form target="'.$CFG->framename.'" method="get" action="'.$CFG->wwwroot.'/'.$CFG->admin.'/lang.php">'.
31 31
                       '<input type="hidden" name="mode" value="compare" />'.
32 32
                       '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />'.
33 33
                       '<input type="submit" value="'.$strcomparelanguage.'" /></form>';
@@ -35,7 +35,7 @@
35 35
         case "compare":
36 36
             $navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strcomparelanguage";
37 37
             $title = $strcomparelanguage;
38  
-            $button = '<form target="'.$CFG->framename.'" method="get" action="'.$CFG->wwwroot.'/admin/lang.php">'.
  38
+            $button = '<form target="'.$CFG->framename.'" method="get" action="'.$CFG->wwwroot.'/'.$CFG->admin.'/lang.php">'.
39 39
                       '<input type="hidden" name="mode" value="missing" />'.
40 40
                       '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />'.
41 41
                       '<input type="submit" value="'.$strmissingstrings.'" /></form>';
@@ -60,7 +60,7 @@
60 60
         echo "<table align=center><tr><td align=\"right\">";
61 61
         echo "<b>$strcurrentlanguage:</b>";
62 62
         echo "</td><td>";
63  
-        echo popup_form ("$CFG->wwwroot/admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
  63
+        echo popup_form ("$CFG->wwwroot/$CFG->admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
64 64
         echo "</td></tr></table>";
65 65
         print_heading("<a href=\"lang.php?mode=missing&sesskey=$USER->sesskey\">$strmissingstrings</a>");
66 66
         print_heading("<a href=\"lang.php?mode=compare&sesskey=$USER->sesskey\">$strcomparelanguage</a>");
4  theme/index.php
@@ -39,8 +39,8 @@
39 39
     $strthemesaved = get_string("themesaved");
40 40
 
41 41
     print_header("$site->shortname: $strthemes", $site->fullname, 
42  
-                 "<a href=\"$CFG->wwwroot/admin/index.php\">$stradministration</a> -> ".
43  
-                 "<a href=\"$CFG->wwwroot/admin/configure.php\">$strconfiguration</a> -> $strthemes");
  42
+                 "<a href=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</a> -> ".
  43
+                 "<a href=\"$CFG->wwwroot/$CFG->admin/configure.php\">$strconfiguration</a> -> $strthemes");
44 44
 
45 45
     if ($choose and confirm_sesskey()) {
46 46
         if (set_config("theme", $choose)) {

0 notes on commit 227f333

Please sign in to comment.
Something went wrong with that request. Please try again.