Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Fix(FusionExtension): Stop FusionExtension from making the tag lowerc…
Browse files Browse the repository at this point in the history
…ase. (#7)
  • Loading branch information
silbinarywolf authored and Nathan committed Sep 13, 2016
1 parent 6002faa commit b1b5eba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/extensions/FusionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
}
Expand Down

0 comments on commit b1b5eba

Please sign in to comment.