mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10967] adding $root_path to posting_get_topic_icons
PHPBB3-10967
This commit is contained in:
parent
80180a6a20
commit
d434672dde
1 changed files with 4 additions and 2 deletions
|
@ -288,13 +288,15 @@ function posting_gen_topic_icons($mode, $icon_id)
|
||||||
|
|
||||||
if (sizeof($icons))
|
if (sizeof($icons))
|
||||||
{
|
{
|
||||||
|
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_root_path;
|
||||||
|
|
||||||
foreach ($icons as $id => $data)
|
foreach ($icons as $id => $data)
|
||||||
{
|
{
|
||||||
if ($data['display'])
|
if ($data['display'])
|
||||||
{
|
{
|
||||||
$template->assign_block_vars('topic_icon', array(
|
$template->assign_block_vars('topic_icon', array(
|
||||||
'ICON_ID' => $id,
|
'ICON_ID' => $id,
|
||||||
'ICON_IMG' => $phpbb_root_path . $config['icons_path'] . '/' . $data['img'],
|
'ICON_IMG' => $root_path . $config['icons_path'] . '/' . $data['img'],
|
||||||
'ICON_WIDTH' => $data['width'],
|
'ICON_WIDTH' => $data['width'],
|
||||||
'ICON_HEIGHT' => $data['height'],
|
'ICON_HEIGHT' => $data['height'],
|
||||||
|
|
||||||
|
@ -2637,7 +2639,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
* - 'topic_last_post_subject'
|
* - 'topic_last_post_subject'
|
||||||
* - 'topic_last_poster_name'
|
* - 'topic_last_poster_name'
|
||||||
* - 'topic_last_poster_colour'
|
* - 'topic_last_poster_colour'
|
||||||
* @param int $bump_time The time at which topic was bumped, usually it is a current time as obtained via time().
|
* @param int $bump_time The time at which topic was bumped, usually it is a current time as obtained via time().
|
||||||
* @return string An URL to the bumped topic, example: ./viewtopic.php?forum_id=1&topic_id=2&p=3#p3
|
* @return string An URL to the bumped topic, example: ./viewtopic.php?forum_id=1&topic_id=2&p=3#p3
|
||||||
*/
|
*/
|
||||||
function phpbb_bump_topic($forum_id, $topic_id, $post_data, $bump_time = false)
|
function phpbb_bump_topic($forum_id, $topic_id, $post_data, $bump_time = false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue