From: Carsten K. <car...@us...> - 2002-01-21 17:53:47
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv19926 Modified Files: LikePages.php Log Message: Converted to use new PageList class. Index: LikePages.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/LikePages.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** LikePages.php 2002/01/21 06:55:47 1.7 --- LikePages.php 2002/01/21 17:53:44 1.8 *************** *** 3,6 **** --- 3,7 ---- require_once('lib/TextSearchQuery.php'); + require_once('lib/PageList.php'); /** *************** *** 52,55 **** --- 53,57 ---- $descrip = fmt("These pages share an initial or final title word with '%s'", _LinkWikiWord($page)); + } *************** *** 73,77 **** $pages = $dbi->titleSearch($query); ! $list = HTML::ul(); while ($page = $pages->next()) { $name = $page->getName(); --- 75,82 ---- $pages = $dbi->titleSearch($query); ! $pagelist = new PageList(); ! //$pagelist->insertColumn(_("Hits")); ! //$pagelist->addcolumn(_("Last Modified")); ! while ($page = $pages->next()) { $name = $page->getName(); *************** *** 80,91 **** if (!empty($exclude) && $name == $exclude) continue; ! $list->pushContent(HTML::li(_LinkWikiWord($name))); } ! if (!$list->getContent()) ! $list = HTML::blockquote(_("<none>")); if ($noheader) ! return $list; ! return array(HTML::p($descrip), $list); } --- 85,96 ---- if (!empty($exclude) && $name == $exclude) continue; ! $pagelist->addPage($page); } ! if (!$pagelist->getContent()) ! $pagelist = HTML::blockquote(_("<none>")); if ($noheader) ! return $pagelist; ! return array(HTML::p($descrip), $pagelist->getContent()); } |