From 0968351067f99e8afc882d4237902642e608e6f5 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 18 Oct 2019 15:50:34 +0200 Subject: Big naming Clean-up Art -> Page --- app/class/modelhome.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'app/class/modelhome.php') diff --git a/app/class/modelhome.php b/app/class/modelhome.php index 1154e78..d90a3d3 100644 --- a/app/class/modelhome.php +++ b/app/class/modelhome.php @@ -1,6 +1,6 @@ setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'visitcount', 'editcount', 'affcount']); $opt->settaglist($table); $opt->setauthorlist($table); @@ -28,7 +28,7 @@ class Modelhome extends Modelart */ public function Optlistinit(array $table) { - $optlist = new Optlist(Art2::classvarlist()); + $optlist = new Optlist(Page::classvarlist()); $optlist->settaglist($table); $optlist->setauthorlist($table); @@ -53,11 +53,11 @@ class Modelhome extends Modelart $filter = array_intersect($filtertagfilter, $filtersecure, $filterauthorfilter); $table2 = []; $table2invert = []; - foreach ($table as $art) { - if (in_array($art->id(), $filter)) { - $table2[] = $art; + foreach ($table as $page) { + if (in_array($page->id(), $filter)) { + $table2[] = $page; } else { - $table2invert[] = $art; + $table2invert[] = $page; } @@ -67,7 +67,7 @@ class Modelhome extends Modelart $table2 = $table2invert; } - $this->artlistsort($table2, $opt->sortby(), $opt->order()); + $this->pagelistsort($table2, $opt->sortby(), $opt->order()); if($opt->limit() !== 0) { $table2 = array_slice($table2, 0, $opt->limit()); -- cgit v1.2.3