From d8a620e9a740c3afeb937cd1d5ea1a70c7072afb Mon Sep 17 00:00:00 2001 From: rurban Date: Sat, 10 Jun 2006 11:57:20 +0000 Subject: [PATCH] fix missing links git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5082 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index 544e5041f..29ce194d7 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -1,5 +1,5 @@ * Copyright (C) 2004, 2005 $ThePhpWikiProgrammingTeam * @@ -81,9 +81,6 @@ class CacheableMarkup extends XmlContent { * A hash of linkto=>pagenames, relation=>pagenames (strings). */ function getWikiPageLinks() { - // include_once('lib/WikiPlugin.php'); - // $ploader = new WikiPluginLoader(); - $links = array(); foreach ($this->_content as $item) { if (!isa($item, 'Cached_DynamicContent')) @@ -92,7 +89,9 @@ class CacheableMarkup extends XmlContent { continue; $links = array_merge($links, $item_links); } - return array_unique($links); + // array_unique has a bug with hashes! set_links checks for duplicates, array_merge does not + //return array_unique($links); + return $links; } /** Get link info. -- 2.45.0