mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Add #30 - option to disable server scope column
This commit is contained in:
parent
4abcd21eaf
commit
9260bbdf4e
@ -392,6 +392,9 @@ class Page {
|
||||
}
|
||||
|
||||
function print_table_rows($row, $array, $print_headers = true) {
|
||||
if (!$this->settings->show_server_scope) {
|
||||
unset($array[$this->t("column_server")]);
|
||||
}
|
||||
if ($print_headers && !$this->table_headers_printed) {
|
||||
$headers = array_keys($array);
|
||||
$this->table_print_headers($headers);
|
||||
|
@ -28,6 +28,9 @@ final class Settings {
|
||||
// Clicking on the header name will send you to this address.
|
||||
$this->name_link = '#';
|
||||
|
||||
// Show server scope column?
|
||||
$this->show_server_scope = true;
|
||||
|
||||
// Show inactive bans? Removed bans will show (Unbanned), mutes will show (Unmuted), warnings will show (Expired).
|
||||
$this->show_inactive_bans = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user