mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Minor improvements (#1450)
* Minor improvements * Update CHANGELOG.md * Update memberlist.php
This commit is contained in:
parent
6d5d5b9669
commit
d4eb4fe680
3 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@
|
|||
- Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Code refactoring [\#1441](https://github.com/torrentpier/torrentpier/pull/1441) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435), [\#1443](https://github.com/torrentpier/torrentpier/pull/1443), [\#1446](https://github.com/torrentpier/torrentpier/pull/1446) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435), [\#1443](https://github.com/torrentpier/torrentpier/pull/1443), [\#1446](https://github.com/torrentpier/torrentpier/pull/1446), [\#1450](https://github.com/torrentpier/torrentpier/pull/1450) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- New Crowdin updates [\#1444](https://github.com/torrentpier/torrentpier/pull/1444), [\#1447](https://github.com/torrentpier/torrentpier/pull/1447) ([Exileum](https://github.com/Exileum))
|
||||
|
||||
## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30)
|
||||
|
|
|
@ -120,8 +120,8 @@ if ($result = DB()->fetch_rowset($sql)) {
|
|||
$paginationurl = "memberlist.php?mode=$mode&order=$sort_order&role=$role";
|
||||
$paginationurl .= $username ? "&username=$username" : '';
|
||||
|
||||
if ($mode != 'topten' || $bb_cfg['topics_per_page'] < 10) {
|
||||
$sql = "SELECT COUNT(*) AS total FROM " . BB_USERS . " WHERE user_id NOT IN(" . EXCLUDED_USERS . ")";
|
||||
if ($mode != 'topten') {
|
||||
$sql = "SELECT COUNT(*) AS total FROM " . BB_USERS . " WHERE user_id NOT IN(" . EXCLUDED_USERS . ") $where_sql";
|
||||
if (!$result = DB()->sql_query($sql)) {
|
||||
bb_die('Error getting total users');
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
ajax.callback.view_post = function (data) {
|
||||
loadedText[data.post_id] = true;
|
||||
$('#post_' + data.post_id + ' div.post_body').prepend(
|
||||
'<div class="tCenter" id="ptx-' + data.post_id + '"><textarea style="width: 99%; height: 200px; line-height: 1.2;">' + data['post_text'] + '</textarea><hr></div>'
|
||||
'<div class="tCenter" id="ptx-' + data.post_id + '"><textarea style="width: 99%; height: 200px; line-height: 1.2;" readonly>' + data['post_text'] + '</textarea><hr></div>'
|
||||
);
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue