From 396a5776cd043e899e4897ec50fc8edc52585512 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 30 Jan 2019 15:56:04 +0100 Subject: author filter home --- app/class/modelhome.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/class/modelhome.php') diff --git a/app/class/modelhome.php b/app/class/modelhome.php index 78e51ba..fb5989c 100644 --- a/app/class/modelhome.php +++ b/app/class/modelhome.php @@ -13,6 +13,7 @@ class Modelhome extends Modelart $opt = new Opt(Art2::classvarlist()); $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'visitcount']); $opt->settaglist($table); + $opt->setauthorlist($table); $opt->submit(); return $opt; @@ -27,9 +28,10 @@ class Modelhome extends Modelart $filtertagfilter = $listmanager->filtertagfilter($table, $opt->tagfilter(), $opt->tagcompare()); + $filterauthorfilter = $listmanager->filterauthorfilter($table, $opt->authorfilter(), $opt->authorcompare()); $filtersecure = $listmanager->filtersecure($table, $opt->secure()); - $filter = array_intersect($filtertagfilter, $filtersecure); + $filter = array_intersect($filtertagfilter, $filtersecure, $filterauthorfilter); $table2 = []; $table2invert = []; foreach ($table as $art) { -- cgit v1.2.3