Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX ModelViewer doesn't work due to minor bug introduced by making…

… $_CLASS_MANIFEST keys lowercase (fixes #6144, thanks daniel.lindkvist) (from r113249)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114524 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit ecaa735db25ceeae039d0d5cdf47408906057dfc 1 parent 662f581
@sminnee sminnee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  dev/ModelViewer.php
View
2  dev/ModelViewer.php
@@ -129,7 +129,7 @@ function __construct($className) {
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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.