From: <var...@us...> - 2014-09-25 08:48:06
|
Revision: 9112 http://sourceforge.net/p/phpwiki/code/9112 Author: vargenau Date: 2014-09-25 08:47:58 +0000 (Thu, 25 Sep 2014) Log Message: ----------- Fix Bug#646 Wrong number of links in BackLinks Modified Paths: -------------- trunk/lib/PageList.php trunk/pgsrc/ReleaseNotes Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2014-09-24 16:13:38 UTC (rev 9111) +++ trunk/lib/PageList.php 2014-09-25 08:47:58 UTC (rev 9112) @@ -809,10 +809,12 @@ function addPage($page_handle) { + $pagename = is_string($page_handle) ? $page_handle : $page_handle->getName(); + if (in_array($pagename, $this->pageNames())) { + return; + } if (!empty($this->_excluded_pages)) { - if (!in_array((is_string($page_handle) ? $page_handle : $page_handle->getName()), - $this->_excluded_pages) - ) + if (!in_array($pagename, $this->_excluded_pages)) $this->_pages[] = $page_handle; } else { $this->_pages[] = $page_handle; Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2014-09-24 16:13:38 UTC (rev 9111) +++ trunk/pgsrc/ReleaseNotes 2014-09-25 08:47:58 UTC (rev 9112) @@ -1,4 +1,4 @@ -Date: Wed, 24 Sep 2014 18:11:57 +0000 +Date: Thu, 25 Sep 2014 10:11:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.5.0) Content-Type: application/x-phpwiki; pagename=ReleaseNotes; @@ -17,6 +17,7 @@ * fix Bug#647 undefined method WikiDB_backend_dba::WikiDB_backend_dbaBase * correct total number of pages for AllPagesCreatedByMe, AllPagesOwnedByMe, AllPagesLastEditedByMe * fix Bug#607 BackLinks do not work inside a RichTable +* fix Bug#646 Wrong number of links in BackLinks == 1.5.0 2014-07-29 Marc-Etienne Vargenau == This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |