mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/13276] Support PHPBB_USE_BOARD_URL_PATH in web root path
PHPBB3-13276
This commit is contained in:
@@ -189,7 +189,7 @@ function generate_smilies($mode, $forum_id)
|
||||
|
||||
if (count($smilies))
|
||||
{
|
||||
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_path_helper->get_web_root_path();
|
||||
$root_path = $phpbb_path_helper->get_web_root_path();
|
||||
|
||||
foreach ($smilies as $row)
|
||||
{
|
||||
@@ -420,7 +420,7 @@ function update_post_information($type, $ids, $return_update_sql = false)
|
||||
*/
|
||||
function posting_gen_topic_icons($mode, $icon_id)
|
||||
{
|
||||
global $phpbb_root_path, $config, $template, $cache;
|
||||
global $phpbb_root_path, $phpbb_path_helper, $config, $template, $cache;
|
||||
|
||||
// Grab icons
|
||||
$icons = $cache->obtain_icons();
|
||||
@@ -432,7 +432,7 @@ function posting_gen_topic_icons($mode, $icon_id)
|
||||
|
||||
if (count($icons))
|
||||
{
|
||||
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_root_path;
|
||||
$root_path = $phpbb_path_helper->get_web_root_path();
|
||||
|
||||
foreach ($icons as $id => $data)
|
||||
{
|
||||
|
Reference in New Issue
Block a user