diff options
author | Michael Hamann <michael@content-space.de> | 2011-08-10 23:19:56 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2011-08-10 23:19:56 +0200 |
commit | fe165917474a912ed1c531a5a3711709527fadc1 (patch) | |
tree | 7a8ba17309bc9e20ce3f054def26dd05ee85ff72 /inc/fulltext.php | |
parent | 507a2aebd7d8bede509a97e12e2a0f208030ee15 (diff) | |
download | rpg-fe165917474a912ed1c531a5a3711709527fadc1.tar.gz rpg-fe165917474a912ed1c531a5a3711709527fadc1.tar.bz2 |
Hide hidden and deleted pages from the backlinks
Sometimes pages aren't deleted from the index (that should be fixed,
too) and appear in the backlinks although they don't exist anymore.
This change hides them and hidden pages that shouldn't appear at all as
the backlinks view is an automatic listing. Hidden pages had been hidden
before the transition to the metadata index, too.
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r-- | inc/fulltext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index 6ab710d54..620237296 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -135,7 +135,7 @@ function ft_backlinks($id){ // check ACL permissions foreach(array_keys($result) as $idx){ - if(auth_quickaclcheck($result[$idx]) < AUTH_READ){ + if(isHiddenPage($result[$idx]) || auth_quickaclcheck($result[$idx]) < AUTH_READ || !page_exists($result[$idx], '', false)){ unset($result[$idx]); } } |