Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9
-
Fix Version/s: STABLE backlog
-
Component/s: Administration, Themes, Usability
-
Labels:None
-
Environment:Windows Server 2003 RC2, Apache 2.2.2, MySQL, PHP 5.1.4
-
Affected Branches:MOODLE_19_STABLE
Description
We use a custom image for the arrows in our breadcrumb trail at http://moodle.midkent.ac.uk by adding this to the config.php in the theme folder:
$THEME->rarrow = '<img src="' . $CFG->wwwroot .'/theme/midkent/pix/r_breadcrumb.gif' . '">';
$THEME->larrow = '<img src="' . $CFG->wwwroot .'/theme/midkent/pix/l_breadcrumb.gif' . '">';
This works fine, but it now breaks the Add and Remove buttons on pages like Assign Roles because it's trying to add the <img src to the value of an input. I have rectified this by hard-coding the arrow character, but I think ideally it should be another customisable image in the theme.
The button width was also restricted by the class, so I have removed that. This could have been changed, but it's probably used elsewhere.
My code now looks like this:
/admin/roles/assign.html: Line 48
<p>
<input name="add" id="add" type="submit" value="<?php echo '◄ '.get_string('add').' '; ?>" title="<?php print_string('add'); ?>" />
<br />
<input name="remove" id="remove" type="submit" value="<?php echo '► '.get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
</p>
I've noticed today that it also breaks the quiz editing page (mod/quiz/edit.php)