diff options
-rw-r--r-- | inc/Action/Denied.php | 3 | ||||
-rw-r--r-- | inc/Ui/Editor.php | 2 | ||||
-rw-r--r-- | inc/Ui/UserProfile.php | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/inc/Action/Denied.php b/inc/Action/Denied.php index 1daac22b3..1caa9e1e7 100644 --- a/inc/Action/Denied.php +++ b/inc/Action/Denied.php @@ -22,8 +22,9 @@ class Denied extends AbstractAclAction /** @inheritdoc */ public function tplContent() { + global $INPUT; $this->showBanner(); - if (empty($_SERVER['REMOTE_USER']) && actionOK('login')) { + if (empty($INPUT->server->str('REMOTE_USER')) && actionOK('login')) { (new Ui\Login)->show(); } } diff --git a/inc/Ui/Editor.php b/inc/Ui/Editor.php index 5d613300f..f34adebce 100644 --- a/inc/Ui/Editor.php +++ b/inc/Ui/Editor.php @@ -124,7 +124,7 @@ class Editor extends Ui $input->getLabel()->attr('class', 'nowrap'); // adds a checkbox for minor edits for logged in users - if ($conf['useacl'] && $_SERVER['REMOTE_USER']) { + if ($conf['useacl'] && $INPUT->server->str('REMOTE_USER')) { $form->addCheckbox('minor', $lang['minoredit'])->id('edit__minoredit')->addClass('nowrap')->val('1'); } $form->addTagClose('div'); // close div summary class diff --git a/inc/Ui/UserProfile.php b/inc/Ui/UserProfile.php index 22811591f..0f6f62623 100644 --- a/inc/Ui/UserProfile.php +++ b/inc/Ui/UserProfile.php @@ -46,7 +46,7 @@ class UserProfile extends Ui $attr = array('size' => '50', 'disabled' => 'disabled'); $input = $form->addTextInput('login', $lang['user'])->attrs($attr)->addClass('edit') - ->val($_SERVER['REMOTE_USER']); + ->val($INPUT->server->str('REMOTE_USER')); $input->getLabel()->attr('class', 'block'); $form->addHTML("<br>\n"); |