From 5168cf92a82caab617d424785f80a52f6f4404d3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 31 Oct 2010 02:24:27 +0000 Subject: [PATCH] BUGFIX ModelViewer doesn't work due to minor bug introduced by making $_CLASS_MANIFEST keys lowercase (fixes #6144, thanks daniel.lindkvist) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@113249 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/ModelViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/ModelViewer.php b/dev/ModelViewer.php index 871a319f5..ebf88f570 100644 --- a/dev/ModelViewer.php +++ b/dev/ModelViewer.php @@ -129,7 +129,7 @@ class ModelViewer_Model extends ViewableData { function getModule() { global $_CLASS_MANIFEST; - $className = $this->className; + $className = strtolower($this->className); if(($pos = strpos($className,'_')) !== false) $className = substr($className,0,$pos); if(isset($_CLASS_MANIFEST[$className])) { if(preg_match('/^'.str_replace('/','\/',preg_quote(BASE_PATH)).'\/([^\/]+)\//', $_CLASS_MANIFEST[$className], $matches)) {