Skip to content

Commit

Permalink
[TASK] use argument source
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmatseriks authored and dmh committed Dec 4, 2018
1 parent a10f0a1 commit f4c9e02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Classes/ViewHelpers/Render/SvgViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ public function initializeArguments()
/**
* Generate a list from the content
*
* @param string $source
*/
public function render($source)
public function render()
{
$sourceAbs = PATH_site . $source;
$sourceAbs = PATH_site . $this->arguments['source'];

if (!file_exists($sourceAbs)) {
return '<!-- unable to open file: ' . $source . ' (missing) -->';
Expand Down

0 comments on commit f4c9e02

Please sign in to comment.