From e8920030e269d75fc7122e8f57764eb136f318f3 Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Mon, 21 Jan 2002 17:58:43 +0000 Subject: [PATCH] renamed variable git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1434 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/MostPopular.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/plugin/MostPopular.php b/lib/plugin/MostPopular.php index 212bc1109..07661ab97 100644 --- a/lib/plugin/MostPopular.php +++ b/lib/plugin/MostPopular.php @@ -1,5 +1,5 @@ mostPopular($limit); - $list = new PageList(); - $list->insertColumn(_("Hits")); - //$list->addcolumn(_("Last Modified")); + $pagelist = new PageList(); + $pagelist->insertColumn(_("Hits")); + //$pagelist->addcolumn(_("Last Modified")); while ($page = $pages->next()) { $hits = $page->get('hits'); if ($hits == 0) break; - $list->addPage($page); + $pagelist->addPage($page); } $pages->free(); if (! $noheader) { if ($limit > 0) { - $list->setCaption(_("The %d most popular pages of this wiki:")); + $pagelist->setCaption(_("The %d most popular pages of this wiki:")); } else { - $list->setCaption(_("Visited pages on this wiki, ordered by popularity:")); + $pagelist->setCaption(_("Visited pages on this wiki, ordered by popularity:")); } } - return $list->getHTML(); + return $pagelist->getContent(); } }; -- 2.45.0