aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-09-09 11:06:58 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-09-09 11:06:58 +0200
commit2c188f22d007479477a2f5ede15a2067c7cd2242 (patch)
tree2258bd5aee22df4af7c9b4f3a9d46bbd271661b6 /phpBB
parent542d75b3a918a5782a1682003fdc4e1f004afc47 (diff)
parentc9d159257a4ebbb8a8949844e30459474661de36 (diff)
downloadforums-2c188f22d007479477a2f5ede15a2067c7cd2242.tar
forums-2c188f22d007479477a2f5ede15a2067c7cd2242.tar.gz
forums-2c188f22d007479477a2f5ede15a2067c7cd2242.tar.bz2
forums-2c188f22d007479477a2f5ede15a2067c7cd2242.tar.xz
forums-2c188f22d007479477a2f5ede15a2067c7cd2242.zip
Merge branch '3.1.x'
* 3.1.x: [ticket/7362] Add alt attribute on topic icons
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_posting.php1
-rw-r--r--phpBB/styles/prosilver/template/posting_editor.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 0f42f1950a..4206c87eb9 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -311,6 +311,7 @@ function posting_gen_topic_icons($mode, $icon_id)
{
$template->assign_block_vars('topic_icon', array(
'ICON_ID' => $id,
+ 'ICON_NAME' => $data['img'],
'ICON_IMG' => $root_path . $config['icons_path'] . '/' . $data['img'],
'ICON_WIDTH' => $data['width'],
'ICON_HEIGHT' => $data['height'],
diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html
index 1a9b3398aa..484ca341c4 100644
--- a/phpBB/styles/prosilver/template/posting_editor.html
+++ b/phpBB/styles/prosilver/template/posting_editor.html
@@ -6,7 +6,7 @@
<dt><label for="icon">{L_ICON}{L_COLON}</label></dt>
<dd>
<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" tabindex="1" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
- <!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} tabindex="1" /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
+ <!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} tabindex="1" /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="{topic_icon.ICON_NAME}" title="" /></label> <!-- END topic_icon -->
</dd>
</dl>
<!-- ENDIF -->