From b1b5eba27cdcc8d6f0245f3f6d3a03a0c8929763 Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Tue, 13 Sep 2016 15:30:59 +1000 Subject: [PATCH] Fix(FusionExtension): Stop FusionExtension from making the tag lowercase. (#7) --- code/extensions/FusionExtension.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/extensions/FusionExtension.php b/code/extensions/FusionExtension.php index eb4e8d8..a940a23 100644 --- a/code/extensions/FusionExtension.php +++ b/code/extensions/FusionExtension.php @@ -47,13 +47,12 @@ public function validate(ValidationResult $result) { // Confirm that the tag has been given a title and doesn't already exist. - $this->owner->$validate = strtolower($this->owner->$validate); if($result->valid() && !$this->owner->$validate) { $result->error("\"{$validate}\" required!"); } else if($result->valid() && $class::get_one($class, array( 'ID != ?' => $this->owner->ID, - "{$validate} = ?" => $this->owner->$validate + "LOWER({$validate}) = ?" => strtolower($this->owner->$validate) ))) { $result->error('Tag already exists!'); }