diff options
author | thomascube <thomas@roundcube.net> | 2009-07-24 10:36:52 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-07-24 10:36:52 +0000 |
commit | 356a67fa5476dc288c5a9704fdedf3644cedf596 (patch) | |
tree | 94cf68fdf75c2726eda00c73949fc20ccc678277 /program/include | |
parent | 7e7edff7eed8d9e83f594db5b43f7e68cdfe7082 (diff) |
Improve button capabilities
Diffstat (limited to 'program/include')
-rwxr-xr-x | program/include/rcube_template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 599f30cdf..3d894b5b6 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -876,7 +876,7 @@ class rcube_template extends rcube_html_page $link_attrib = array('href', 'onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'target'); } else if ($attrib['type']=='link') { - $btn_content = $attrib['label'] ? $attrib['label'] : $attrib['command']; + $btn_content = isset($attrib['content']) ? $attrib['content'] : ($attrib['label'] ? $attrib['label'] : $attrib['command']); $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex', 'target'); } else if ($attrib['type']=='input') { |