From b81188444174938fef86f9ed2bfa21d73511d442 Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Wed, 16 Jan 2008 02:10:05 +0000 Subject: [PATCH] Fixed the $hide_ancestor static on SiteTree subclasses so that it actually works. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@48049 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index f4a16035..b5da56e8 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -259,7 +259,8 @@ JS; if ($kill_ancestors) { foreach ($kill_ancestors as $mark) { // unset from $classes - unset($classes[$mark]); + $idx = array_search($mark, $classes); + unset($classes[$idx]); } } foreach($classes as $class) {