Fix Config\FormDisplayTemplateTest failed test
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
e7ee749650
commit
54eb5ffff8
@ -160,15 +160,21 @@ class FormDisplayTemplate
|
||||
// The first element contains the filename and the second
|
||||
// element is used for the "alt" and "title" attributes.
|
||||
$icon_init = array(
|
||||
'edit' => array('b_edit.png', ''),
|
||||
'help' => array('b_help.png', __('Documentation')),
|
||||
'reload' => array('s_reload.png', ''),
|
||||
'tblops' => array('b_tblops.png', '')
|
||||
'edit' => array('b_edit', ''),
|
||||
'help' => array('b_help', __('Documentation')),
|
||||
'reload' => array('s_reload', ''),
|
||||
'tblops' => array('b_tblops', '')
|
||||
);
|
||||
if ($is_setup_script) {
|
||||
// When called from the setup script, we don't have access to the
|
||||
// sprite-aware getImage() function because the PMA_theme class
|
||||
// has not been loaded, so we generate the img tags manually.
|
||||
$icon_init = array(
|
||||
'edit' => array('b_edit.png', ''),
|
||||
'help' => array('b_help.png', __('Documentation')),
|
||||
'reload' => array('s_reload.png', ''),
|
||||
'tblops' => array('b_tblops.png', '')
|
||||
);
|
||||
foreach ($icon_init as $k => $v) {
|
||||
$title = '';
|
||||
if (! empty($v[1])) {
|
||||
@ -177,7 +183,7 @@ class FormDisplayTemplate
|
||||
$icons[$k] = sprintf(
|
||||
'<img alt="%s" src="%s"%s />',
|
||||
$v[1],
|
||||
"../themes/original/img/{$v[0]}",
|
||||
"../themes/pmahomme/img/{$v[0]}",
|
||||
$title
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user