[feature/controller] Fix missing issues that prevented portal from working

The portal still requires the fix to PHPBB3-11323 in order to work.

B3P-114
This commit is contained in:
Marc Alexander
2013-02-25 11:41:57 +01:00
parent edf7541001
commit b755201897
8 changed files with 75 additions and 62 deletions

View File

@@ -404,16 +404,16 @@ function character_limit(&$title, $limit = 0)
*/
function get_sub_taged_string($message, $bbcode_uid, $length)
{
global $phpbb_root_path, $phpEx;
global $portal_root_path, $phpEx;
if(!class_exists('phpbb_trim_message'))
{
include($phpbb_root_path . 'includes/trim_message/trim_message.' . $phpEx);
include($portal_root_path . '../includes/trim_message/trim_message.' . $phpEx);
}
if(!class_exists('phpbb_trim_message_bbcodes'))
{
include($phpbb_root_path . 'includes/trim_message/bbcodes.' . $phpEx);
include($portal_root_path . '../includes/trim_message/bbcodes.' . $phpEx);
}
$object = new phpbb_trim_message($message, $bbcode_uid, $length);