From 59f6133655f47841a630e0f04ec54f218cc8d4d7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 13 Jan 2009 04:31:14 +0000 Subject: [PATCH] MINOR Added empty $db static on GhostPage - was causing weird side-effects when reinitializing decorated $db statics through Translatable git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@70071 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/GhostPage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/model/GhostPage.php b/core/model/GhostPage.php index 50af7f131..61aef893f 100755 --- a/core/model/GhostPage.php +++ b/core/model/GhostPage.php @@ -12,6 +12,8 @@ class GhostPage extends SiteTree implements HiddenClass { "LinkedPage" => "SiteTree", ); + static $db = array(); + function getCMSFields($val) { if($this->getField('LinkedPageID')) { return $this->LinkedPage()->getCMSFields($val);