diff options
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_pm.php | 55 | 
1 files changed, 14 insertions, 41 deletions
| diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php index 447b6ebe87..7a8c694870 100644 --- a/phpBB/includes/ucp/ucp_pm.php +++ b/phpBB/includes/ucp/ucp_pm.php @@ -1,9 +1,13 @@  <?php  /** -* @package ucp -* @version $Id$ -* @copyright (c) 2005 phpBB Group -* @license http://opensource.org/licenses/gpl-license.php GNU Public License +* +* 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.  *  */ @@ -34,8 +38,6 @@ if (!defined('IN_PHPBB'))  *		Quoting a post (action=quotepost&p=[post_id])  *		Quoting a PM (action=quote&p=[msg_id])  *		Forwarding a PM (action=forward&p=[msg_id]) -* -* @package ucp  */  class ucp_pm  { @@ -84,33 +86,6 @@ class ucp_pm  		switch ($mode)  		{ -			// New private messages popup -			case 'popup': - -				$l_new_message = ''; -				if ($user->data['is_registered']) -				{ -					if ($user->data['user_new_privmsg']) -					{ -						$l_new_message = ($user->data['user_new_privmsg'] == 1) ? $user->lang['YOU_NEW_PM'] : $user->lang['YOU_NEW_PMS']; -					} -					else -					{ -						$l_new_message = $user->lang['YOU_NO_NEW_PM']; -					} -				} - -				$template->assign_vars(array( -					'MESSAGE'			=> $l_new_message, -					'S_NOT_LOGGED_IN'	=> ($user->data['user_id'] == ANONYMOUS) ? true : false, -					'CLICK_TO_VIEW'		=> sprintf($user->lang['CLICK_VIEW_PRIVMSG'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox') . '" onclick="jump_to_inbox(this.href); return false;">', '</a>'), -					'U_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox'), -					'UA_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox', false)) -				); - -				$tpl_file = 'ucp_pm_popup'; -			break; -  			// Compose message  			case 'compose':  				$action = request_var('action', 'post'); @@ -200,7 +175,6 @@ class ucp_pm  					trigger_error('NO_AUTH_READ_HOLD_MESSAGE');  				} -  				// First Handle Mark actions and moving messages  				$submit_mark	= (isset($_POST['submit_mark'])) ? true : false;  				$move_pm		= (isset($_POST['move_pm'])) ? true : false; @@ -345,8 +319,8 @@ class ucp_pm  					'NUM_NOT_MOVED'			=> $num_not_moved,  					'NUM_REMOVED'			=> $num_removed,  					'RELEASE_MESSAGE_INFO'	=> sprintf($user->lang['RELEASE_MESSAGES'], '<a href="' . $this->u_action . '&folder=' . $folder_id . '&release=1">', '</a>'), -					'NOT_MOVED_MESSAGES'	=> ($num_not_moved == 1) ? $user->lang['NOT_MOVED_MESSAGE'] : sprintf($user->lang['NOT_MOVED_MESSAGES'], $num_not_moved), -					'RULE_REMOVED_MESSAGES'	=> ($num_removed == 1) ? $user->lang['RULE_REMOVED_MESSAGE'] : sprintf($user->lang['RULE_REMOVED_MESSAGES'], $num_removed), +					'NOT_MOVED_MESSAGES'	=> $user->lang('NOT_MOVED_MESSAGES', (int) $num_not_moved), +					'RULE_REMOVED_MESSAGES'	=> $user->lang('RULE_REMOVED_MESSAGES', (int) $num_removed),  					'S_FOLDER_OPTIONS'		=> $s_folder_options,  					'S_TO_FOLDER_OPTIONS'	=> $s_to_folder_options, @@ -380,9 +354,10 @@ class ucp_pm  				else if ($action == 'view_message')  				{  					$template->assign_vars(array( -						'S_VIEW_MESSAGE'	=> true, -						'MSG_ID'			=> $msg_id) -					); +						'S_VIEW_MESSAGE'		=> true, +						'L_RETURN_TO_FOLDER'	=> $user->lang('RETURN_TO', $folder_status['folder_name']), +						'MSG_ID'				=> $msg_id, +					));  					if (!$msg_id)  					{ @@ -412,5 +387,3 @@ class ucp_pm  		$this->page_title = 'UCP_PM_' . strtoupper($mode);  	}  } - -?>
\ No newline at end of file | 
