diff options
author | Simon Rettberg | 2021-06-08 14:14:42 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-06-08 14:14:42 +0200 |
commit | cc3be07e2c945828f30d3148d9fc1f653a8e54f6 (patch) | |
tree | 68bc4785e1a49829446b92be3cd1d4f26d99b406 /modules-available | |
parent | Moderize Database handling (diff) | |
download | slx-admin-cc3be07e2c945828f30d3148d9fc1f653a8e54f6.tar.gz slx-admin-cc3be07e2c945828f30d3148d9fc1f653a8e54f6.tar.xz slx-admin-cc3be07e2c945828f30d3148d9fc1f653a8e54f6.zip |
[statistics] Remove dead code
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/statistics/page.inc.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index 6224d69c..a16461f4 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -236,29 +236,9 @@ class Page_Statistics extends Page return; } - $sortColumn = Request::any('sortColumn'); - $sortDirection = Request::any('sortDirection'); - - $filters = StatisticsFilter::parseQuery(); - $filterSet = new StatisticsFilterSet($filters); - $filterSet->setSort($sortColumn, $sortDirection); - - if (!$filterSet->setAllowedLocationsFromPermission('view.' . $this->show)) { - Message::addError('main.no-permission'); - Util::redirect('?do=main'); - } Message::addError('main.value-invalid', 'show', $this->show); } - private function redirectFirst($where, $join, $args) - { - // TODO Annoying at times, restore this? - $res = Database::queryFirst("SELECT machineuuid FROM machine $join WHERE ($where) LIMIT 1", $args); - if ($res !== false) { - Util::redirect('?do=statistics&uuid=' . $res['machineuuid']); - } - } - protected function doAjax() { if (!User::load()) |