mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Some reported bugfixes (#1378)
* Some reported bugfixes * Update privmsg.php * Update privmsg.php * Update privmsg.php * Update privmsg.php * Update privmsg.php * Update CHANGELOG.md
This commit is contained in:
parent
acbe838c23
commit
203c916fb9
2 changed files with 12 additions and 11 deletions
|
@ -34,6 +34,7 @@
|
|||
- Fixed auth(): empty $f_access [\#1329](https://github.com/torrentpier/torrentpier/pull/1329) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Fixed download counter for torrents [\#1346](https://github.com/torrentpier/torrentpier/pull/1346) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Fixed HTTP 500 while cron running in server-side [\#1321](https://github.com/torrentpier/torrentpier/pull/1321) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Some reported bugfixes [\#1378](https://github.com/torrentpier/torrentpier/pull/1378) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Some enhancements for topic_tpl [\#1356](https://github.com/torrentpier/torrentpier/pull/1356) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Don't update downloads counter if attachment not exists [\#1345](https://github.com/torrentpier/torrentpier/pull/1345) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1306](https://github.com/torrentpier/torrentpier/pull/1306), [\#1307](https://github.com/torrentpier/torrentpier/pull/1307), [\#1308](https://github.com/torrentpier/torrentpier/pull/1308), [\#1315](https://github.com/torrentpier/torrentpier/pull/1315), [\#1328](https://github.com/torrentpier/torrentpier/pull/1328), [\#1338](https://github.com/torrentpier/torrentpier/pull/1338), [\#1353](https://github.com/torrentpier/torrentpier/pull/1353), [\#1355](https://github.com/torrentpier/torrentpier/pull/1355), [\#1358](https://github.com/torrentpier/torrentpier/pull/1358), [\#1369](https://github.com/torrentpier/torrentpier/pull/1369) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
|
22
privmsg.php
22
privmsg.php
|
@ -939,11 +939,7 @@ if ($mode == 'read') {
|
|||
//
|
||||
// Do mode specific things
|
||||
//
|
||||
if ($mode == 'post') {
|
||||
$page_title = $lang['POST_NEW_PM'];
|
||||
} elseif ($mode == 'reply') {
|
||||
$page_title = $lang['POST_REPLY_PM'];
|
||||
} elseif ($mode == 'edit') {
|
||||
if ($mode == 'edit') {
|
||||
$page_title = $lang['EDIT_PM'];
|
||||
|
||||
$sql = "SELECT u.user_id
|
||||
|
@ -1021,12 +1017,8 @@ if ($mode == 'read') {
|
|||
|
||||
if ($mode == 'quote') {
|
||||
$privmsg_message = $privmsg['privmsgs_text'];
|
||||
|
||||
$msg_date = bb_date($privmsg['privmsgs_date']);
|
||||
|
||||
$privmsg_message = '[quote="' . $to_username . '"]' . $privmsg_message . '[/quote]';
|
||||
|
||||
$mode = 'reply';
|
||||
}
|
||||
} else {
|
||||
$privmsg_subject = $privmsg_message = $to_username = '';
|
||||
|
@ -1043,7 +1035,15 @@ if ($mode == 'read') {
|
|||
//
|
||||
// Start output, first preview, then errors then post form
|
||||
//
|
||||
$page_title = $lang['SEND_PRIVATE_MESSAGE'];
|
||||
if ($mode == 'post') {
|
||||
$page_title = $lang['POST_NEW_PM'];
|
||||
} elseif ($mode == 'reply') {
|
||||
$page_title = $lang['POST_REPLY_PM'];
|
||||
} elseif ($mode == 'quote') {
|
||||
$page_title = $lang['POST_QUOTE_PM'];
|
||||
} elseif ($mode == 'edit') {
|
||||
$page_title = $lang['EDIT_PM'];
|
||||
}
|
||||
|
||||
if ($preview && !$error) {
|
||||
$orig_word = [];
|
||||
|
@ -1105,9 +1105,9 @@ if ($mode == 'read') {
|
|||
case 'post':
|
||||
$post_a = $lang['SEND_A_NEW_MESSAGE'];
|
||||
break;
|
||||
case 'quote':
|
||||
case 'reply':
|
||||
$post_a = $lang['SEND_A_REPLY'];
|
||||
$mode = 'post';
|
||||
break;
|
||||
case 'edit':
|
||||
$post_a = $lang['EDIT_MESSAGE'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue