function execute($par) { global $wgContLang; $this->setHeaders(); $pg = new GlobalUsersPager($this->getContext(), $par); if ($par) { if (in_array($par, CentralAuthUser::availableGlobalGroups())) { $pg->setGroup($par); } else { $pg->setUsername($par); } } $rqGroup = $this->getRequest()->getVal('group'); if ($rqGroup) { $groupTitle = Title::newFromText($rqGroup); if ($groupTitle) { $pg->setGroup($groupTitle->getUserCaseDBKey()); } } $rqUsername = $wgContLang->ucfirst($this->getRequest()->getVal('username')); if ($rqUsername) { $pg->setUsername($rqUsername); } $this->getOutput()->addModuleStyles('ext.centralauth.globalusers'); $this->getOutput()->addHTML($pg->getPageHeader()); $this->getOutput()->addHTML($pg->getNavigationBar()); $this->getOutput()->addHTML(Html::rawElement('ul', null, $pg->getBody())); $this->getOutput()->addHTML($pg->getNavigationBar()); }
function execute($par) { global $wgContLang; $this->setHeaders(); $pg = new GlobalUsersPager($this->getContext(), $par); if ($par) { $pg->setGroup($par); } $rqGroup = $this->getRequest()->getVal('group'); if ($rqGroup) { $pg->setGroup($rqGroup); } $rqUsername = $wgContLang->ucfirst($this->getRequest()->getVal('username')); if ($rqUsername) { $pg->setUsername($rqUsername); } $this->getOutput()->addHTML($pg->getPageHeader()); $this->getOutput()->addHTML($pg->getNavigationBar()); $this->getOutput()->addHTML('<ul>' . $pg->getBody() . '</ul>'); $this->getOutput()->addHTML($pg->getNavigationBar()); }