Moodle

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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>';

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

fixed with many other similar problems in cvs, thanks for the report

Show
Petr Škoda (skodak) added a comment - fixed with many other similar problems in cvs, thanks for the report
Hide
Nicolas Martignoni added a comment -

Closing, verified.

Show
Nicolas Martignoni added a comment - Closing, verified.

People

Dates

  • Created:
    Updated:
    Resolved: