Issue Details (XML | Word | Printable)

Key: MDL-7915
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Martin Anderson
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 13/Dec/06 10:50 PM   Updated: 09/Feb/08 05:35 AM
Return to search
Component/s: Administration
Affects Version/s: 1.7
Fix Version/s: 1.9, 2.0

Environment: Apache 2.2.3, PHP 5.2.0, MySQL 5.0.27, Windows XP SP2
Issue Links:
Relates
 

Participants: Martin Anderson, Nicolas Martignoni and Petr Skoda
Security Level: None
QA Assignee: Nicolas Martignoni
Resolved date: 20/Dec/07
Affected Branches: MOODLE_17_STABLE
Fixed Branches: MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
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>';


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 20/Dec/07 03:11 AM
fixed with many other similar problems in cvs, thanks for the report

Nicolas Martignoni added a comment - 09/Feb/08 05:35 AM
Closing, verified.