diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-11-08 19:29:20 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-11-08 19:29:20 +0000 |
commit | a484161be2733c5b2f51df681cd4f7e2a77c1176 (patch) | |
tree | 7b4e603905111dea4a29b59b88e0b5b6c12b2c1b /phpBB/includes/ucp/ucp_pm.php | |
parent | 8a965db7aa17af5db4ea6ab7c970cb2a5d21bc86 (diff) | |
download | forums-a484161be2733c5b2f51df681cd4f7e2a77c1176.tar forums-a484161be2733c5b2f51df681cd4f7e2a77c1176.tar.gz forums-a484161be2733c5b2f51df681cd4f7e2a77c1176.tar.bz2 forums-a484161be2733c5b2f51df681cd4f7e2a77c1176.tar.xz forums-a484161be2733c5b2f51df681cd4f7e2a77c1176.zip |
- tiny bugfixes. ;)
git-svn-id: file:///svn/phpbb/trunk@5296 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm.php | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php index d16cf4e9fa..b1ffc4f79b 100644 --- a/phpBB/includes/ucp/ucp_pm.php +++ b/phpBB/includes/ucp/ucp_pm.php @@ -99,7 +99,8 @@ class ucp_pm 'CLICK_TO_VIEW' => sprintf($user->lang['CLICK_VIEW_PRIVMSG'], '<a href="' . $phpbb_root_path . 'ucp.' . $phpEx . $SID . '&i=pm&folder=inbox" onclick="jump_to_inbox();return false;" target="_new">', '</a>'), 'U_INBOX' => "{$phpbb_root_path}ucp.$phpEx$SID&i=pm&folder=inbox") ); - + + $tpl_file = 'ucp_pm_popup'; break; // Compose message @@ -155,7 +156,7 @@ class ucp_pm case 'unread': case 'view': - + $sql = 'SELECT group_message_limit FROM ' . GROUPS_TABLE . ' WHERE group_id = ' . $user->data['group_id']; @@ -251,7 +252,7 @@ class ucp_pm } $message_row = array(); - if ($mode == 'view' && $action == 'view_message' && $msg_id) + if ($action == 'view_message' && $msg_id) { // Get Message user want to see @@ -384,4 +385,35 @@ class ucp_pm } } +/** +* @package module_install +*/ +class ucp_pm_info +{ + function module() + { + return array( + 'filename' => 'ucp_pm', + 'title' => 'UCP_PM', + 'version' => '1.0.0', + 'modes' => array( + 'view' => array('title' => 'UCP_PM_VIEW', 'auth' => 'cfg_allow_privmsg'), + 'compose' => array('title' => 'UCP_PM_COMPOSE', 'auth' => 'cfg_allow_privmsg'), + 'unread' => array('title' => 'UCP_PM_UNREAD', 'auth' => 'cfg_allow_privmsg'), + 'drafts' => array('title' => 'UCP_PM_DRAFTS', 'auth' => 'cfg_allow_privmsg'), + 'options' => array('title' => 'UCP_PM_OPTIONS', 'auth' => 'cfg_allow_privmsg'), + 'popup' => array('title' => 'UCP_PM_POPUP_TITLE', 'auth' => 'cfg_allow_privmsg', 'display' => 0), + ), + ); + } + + function install() + { + } + + function uninstall() + { + } +} + ?>
\ No newline at end of file |