Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-7915

Admin directory hard-coded in search form for Admin Tree Block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.9, 2.0
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      Apache 2.2.3, PHP 5.2.0, MySQL 5.0.27, Windows XP SP2
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Around line 196 of the \moodle\blocks\admin_tree\block_admin_tree.php file the folder for the Moodle admin directory is still hardcoded instead of using the variable called from the config file (i.e. $CFG->admin). This causes errors for those configurations using a different folder.

      $this->content->footer = '<div class="adminsearchform">'.

          • '<form action="'.$CFG->wwwroot.'/admin/search.php" method="get">'. ***

      '<input type="text" name="query" size="8" value="'.s($searchcontent).'" />'.
      '<input type="submit" value="'.get_string('search').'" />'.
      '</form></div>';

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              mganderson Martin Anderson
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08