Skip to content

Commit

Permalink
Merge pull request #1989 from mficzel/task/removeLeftoverReferencesTo…
Browse files Browse the repository at this point in the history
…TsValueMethod

BUGFIX: Remove leftover references to removed `tsValue` method
  • Loading branch information
kdambekalns committed Apr 9, 2018
2 parents 8216085 + abf9017 commit ce6ad21
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Expand Up @@ -28,7 +28,7 @@ class CanRenderImplementation extends AbstractFusionObject
*/
public function getType()
{
return $this->tsValue('type');
return $this->fusionValue('type');
}

/**
Expand Down
8 changes: 6 additions & 2 deletions Neos.Neos/Classes/Fusion/ImageUriImplementation.php
Expand Up @@ -109,10 +109,14 @@ public function getAllowUpScaling()
return $this->fusionValue('allowUpScaling');
}


/**
* Quality
*
* @return integer
*/
public function getQuality()
{
return $this->tsValue('quality');
return $this->fusionValue('quality');
}

/**
Expand Down
Expand Up @@ -33,7 +33,7 @@ extended. The only method that needs to be implemented is ``evaluate()``. To acc
* @return string
*/
public function evaluate() {
$emailAddress = $this->tsValue('emailAddress');
$emailAddress = $this->fusionValue('emailAddress');
$size = $this->fusionValue('size') ?: 80;
$gravatarImageSource = 'http://www.gravatar.com/avatar/' . md5(strtolower(trim($emailAddress))) . '?s=' . $size . '&d=mm&r=g';
return '<img src="' . $gravatarImageSource . '" alt="" />';
Expand Down

0 comments on commit ce6ad21

Please sign in to comment.