diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-03-05 15:25:30 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-03-05 15:25:30 +0100 |
commit | 7c26cd25c7526cf9ab0bd2915f08e2b8d66a59fb (patch) | |
tree | 19d1b86fa6ef3334224ada4a2cfd2546778dec7b /phpBB/includes/ucp/ucp_pm_compose.php | |
parent | 87ca5ef7e5610c72efcb3fd92d415082004d5ae2 (diff) | |
parent | 7e0d54a331ccb569dafeae8b051db5a34e177b5f (diff) | |
download | forums-7c26cd25c7526cf9ab0bd2915f08e2b8d66a59fb.tar forums-7c26cd25c7526cf9ab0bd2915f08e2b8d66a59fb.tar.gz forums-7c26cd25c7526cf9ab0bd2915f08e2b8d66a59fb.tar.bz2 forums-7c26cd25c7526cf9ab0bd2915f08e2b8d66a59fb.tar.xz forums-7c26cd25c7526cf9ab0bd2915f08e2b8d66a59fb.zip |
Merge pull request #3434 from nickvergessen/ticket/13647
[ticket/13647] Move FAQ page to a controller
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 0064fb89fc..fa28bd89a4 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -1120,6 +1120,9 @@ function compose_pm($id, $mode, $action, $user_folders = array()) $form_enctype = (@ini_get('file_uploads') == '0' || strtolower(@ini_get('file_uploads')) == 'off' || !$config['allow_pm_attach'] || !$auth->acl_get('u_pm_attach')) ? '' : ' enctype="multipart/form-data"'; + /** @var \phpbb\controller\helper $controller_helper */ + $controller_helper = $phpbb_container->get('controller.helper'); + // Start assigning vars for main posting page ... $template->assign_vars(array( 'L_POST_A' => $page_title, @@ -1128,7 +1131,7 @@ function compose_pm($id, $mode, $action, $user_folders = array()) 'SUBJECT' => (isset($message_subject)) ? $message_subject : '', 'MESSAGE' => $message_text, - 'BBCODE_STATUS' => ($bbcode_status) ? sprintf($user->lang['BBCODE_IS_ON'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>') : sprintf($user->lang['BBCODE_IS_OFF'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>'), + 'BBCODE_STATUS' => $user->lang(($bbcode_status ? 'BBCODE_IS_ON' : 'BBCODE_IS_OFF'), '<a href="' . $controller_helper->route('phpbb_help_controller', array('mode' => 'bbcode')) . '">', '</a>'), 'IMG_STATUS' => ($img_status) ? $user->lang['IMAGES_ARE_ON'] : $user->lang['IMAGES_ARE_OFF'], 'FLASH_STATUS' => ($flash_status) ? $user->lang['FLASH_IS_ON'] : $user->lang['FLASH_IS_OFF'], 'SMILIES_STATUS' => ($smilies_status) ? $user->lang['SMILIES_ARE_ON'] : $user->lang['SMILIES_ARE_OFF'], |