diff options
Diffstat (limited to 'program/include')
-rwxr-xr-x | program/include/rcube_template.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index fec12ae19..2c9e95100 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -791,6 +791,10 @@ class rcube_template extends rcube_html_page if ($attrib['task']) $command = $attrib['task'] . '.' . $command; + + if (!$attrib['image']) { + $attrib['image'] = $attrib['imagepas'] ? $attrib['imagepas'] : $attrib['imageact']; + } if (!$attrib['id']) { $attrib['id'] = sprintf('rcmbtn%d', $s_button_count++); |