From: <var...@us...> - 2015-02-12 10:35:33
|
Revision: 9533 http://sourceforge.net/p/phpwiki/code/9533 Author: vargenau Date: 2015-02-12 10:35:25 +0000 (Thu, 12 Feb 2015) Log Message: ----------- Use real list instead of middot Modified Paths: -------------- trunk/lib/WikiTheme.php Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2015-02-12 10:05:45 UTC (rev 9532) +++ trunk/lib/WikiTheme.php 2015-02-12 10:35:25 UTC (rev 9533) @@ -1977,19 +1977,19 @@ global $request; $this->title = $title ? $title : _("Related Links"); - $this->body = HTML($body); + $this->body = HTML::ul($body); $page = $request->getPage($request->getArg('pagename')); $revision = $page->getCurrentRevision(); $page_content = $revision->getTransformedContent(); - //$cache = &$page->_wikidb->_cache; $counter = 0; - $sp = HTML::raw('· '); foreach ($page_content->getWikiPageLinks() as $link) { $linkto = $link['linkto']; - if (!$request->_dbi->isWikiPage($linkto)) continue; - $this->body->pushContent($sp, WikiLink($linkto), HTML::br()); + if (!$request->_dbi->isWikiPage($linkto)) + continue; + $this->body->pushContent(HTML::li(WikiLink($linkto))); $counter++; - if ($limit and $counter > $limit) continue; + if ($limit and $counter > $limit) + continue; } } } @@ -2004,17 +2004,17 @@ global $request; $this->title = $title ? $title : _("External Links"); - $this->body = HTML($body); + $this->body = HTML::ul($body); $page = $request->getPage($request->getArg('pagename')); $cache = &$page->_wikidb->_cache; $counter = 0; - $sp = HTML::raw('· '); foreach ($cache->getWikiPageLinks() as $link) { $linkto = $link['linkto']; if ($linkto) { - $this->body->pushContent($sp, WikiLink($linkto), HTML::br()); + $this->body->pushContent(HTML::li(WikiLink($linkto))); $counter++; - if ($limit and $counter > $limit) continue; + if ($limit and $counter > $limit) + continue; } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |