diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-10-10 16:43:15 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-10-10 16:43:15 +0200 |
commit | d1b7101fedd4511d793c907258604a8eda45fe03 (patch) | |
tree | f491e1eed6aea5c14eeb72b4f24433fe00f55f92 /phpBB/phpbb | |
parent | 6ebadee5d0a6143079a22f3aa607127acaeb81cd (diff) | |
parent | 3937f1f4ae77b29faf69292783cc3ae267785ee4 (diff) | |
download | forums-d1b7101fedd4511d793c907258604a8eda45fe03.tar forums-d1b7101fedd4511d793c907258604a8eda45fe03.tar.gz forums-d1b7101fedd4511d793c907258604a8eda45fe03.tar.bz2 forums-d1b7101fedd4511d793c907258604a8eda45fe03.tar.xz forums-d1b7101fedd4511d793c907258604a8eda45fe03.zip |
Merge pull request #3896 from Zoddo/ticket/14157
[ticket/14157] Allow to set the alt/title attribute on post icons
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/cache/service.php | 1 | ||||
-rw-r--r-- | phpBB/phpbb/db/migration/data/v320/icons_alt.php | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/phpBB/phpbb/cache/service.php b/phpBB/phpbb/cache/service.php index 56727c2ad5..a022c00bc6 100644 --- a/phpBB/phpbb/cache/service.php +++ b/phpBB/phpbb/cache/service.php @@ -141,6 +141,7 @@ class service $icons[$row['icons_id']]['img'] = $row['icons_url']; $icons[$row['icons_id']]['width'] = (int) $row['icons_width']; $icons[$row['icons_id']]['height'] = (int) $row['icons_height']; + $icons[$row['icons_id']]['alt'] = ($row['icons_alt']) ? $row['icons_alt'] : ''; $icons[$row['icons_id']]['display'] = (bool) $row['display_on_posting']; } $this->db->sql_freeresult($result); diff --git a/phpBB/phpbb/db/migration/data/v320/icons_alt.php b/phpBB/phpbb/db/migration/data/v320/icons_alt.php new file mode 100644 index 0000000000..7071ae78db --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v320/icons_alt.php @@ -0,0 +1,44 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +namespace phpbb\db\migration\data\v320; + +class icons_alt extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array('\phpbb\db\migration\data\v310\dev'); + } + + public function update_schema() + { + return array( + 'add_columns' => array( + $this->table_prefix . 'icons' => array( + 'icons_alt' => array('VCHAR', '', 'after' => 'icons_height'), + ), + ), + ); + } + + public function revert_schema() + { + return array( + 'drop_columns' => array( + $this->table_prefix . 'icons' => array( + 'icons_alt', + ), + ), + ); + } +} |