From: Carsten K. <car...@us...> - 2002-01-21 17:58:47
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv22828 Modified Files: MostPopular.php Log Message: renamed variable Index: MostPopular.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/MostPopular.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** MostPopular.php 2002/01/21 16:31:53 1.11 --- MostPopular.php 2002/01/21 17:58:43 1.12 *************** *** 27,33 **** $pages = $dbi->mostPopular($limit); ! $list = new PageList(); ! $list->insertColumn(_("Hits")); ! //$list->addcolumn(_("Last Modified")); while ($page = $pages->next()) { --- 27,33 ---- $pages = $dbi->mostPopular($limit); ! $pagelist = new PageList(); ! $pagelist->insertColumn(_("Hits")); ! //$pagelist->addcolumn(_("Last Modified")); while ($page = $pages->next()) { *************** *** 35,39 **** if ($hits == 0) break; ! $list->addPage($page); } $pages->free(); --- 35,39 ---- if ($hits == 0) break; ! $pagelist->addPage($page); } $pages->free(); *************** *** 41,50 **** if (! $noheader) { if ($limit > 0) { ! $list->setCaption(_("The %d most popular pages of this wiki:")); } else { ! $list->setCaption(_("Visited pages on this wiki, ordered by popularity:")); } } ! return $list->getHTML(); } --- 41,50 ---- if (! $noheader) { if ($limit > 0) { ! $pagelist->setCaption(_("The %d most popular pages of this wiki:")); } else { ! $pagelist->setCaption(_("Visited pages on this wiki, ordered by popularity:")); } } ! return $pagelist->getContent(); } |