aboutsummaryrefslogtreecommitdiff
path: root/app/class/modelhome.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-30 15:56:04 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-30 15:56:04 +0100
commit396a5776cd043e899e4897ec50fc8edc52585512 (patch)
tree51714a3aa981e698f4573f0ce54e22e1dc8338a8 /app/class/modelhome.php
parent3309bd722454fa8696ce2415075f401e444c9910 (diff)
downloadwcms-396a5776cd043e899e4897ec50fc8edc52585512.tar.gz
wcms-396a5776cd043e899e4897ec50fc8edc52585512.zip
author filter home
Diffstat (limited to 'app/class/modelhome.php')
-rw-r--r--app/class/modelhome.php4
1 files changed, 3 insertions, 1 deletions
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) {