Skip to content

Commit

Permalink
Fixed get path.
Browse files Browse the repository at this point in the history
  • Loading branch information
piraz committed Aug 26, 2020
1 parent 6162e90 commit 03c4411
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions src/MyFuses/Core/Verbs/Smarty/SmartyConfigureVerb.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ public function setTheme($theme) {
*
*/
public function getPath() {
return str_replace("\\","/",$this->pathPath);
return str_replace("\\","/",$this->path);
}

/**
*
*/
public function setPath( $path )
public function setPath($path)
{
if(substr( $path, -1 ) != DIRECTORY_SEPARATOR) {
$path = $path . DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -176,12 +176,13 @@ public function getParsedCode($commented, $identLevel)
"value" => addslashes($applicationParsedPath) ));

$this->templateParameters[] = $property;
$strOut .= str_repeat( "\t", $identLevel );
$strOut .= str_repeat("\t", $identLevel);
$strOut .= "\$parameters = array();\n";

$strTemplateHandler = "Candango\MyFuses\Util\Template\TemplateHandler";

foreach( $this->templateParameters as $parameter ) {
foreach($this->templateParameters as $parameter)
{
$strOut .= str_repeat( "\t", $identLevel );
$strOut .= "\$parameters[] = " . $strTemplateHandler .
"::buildParameter" . "(\"" . $parameter['attributes']['name'] .
Expand All @@ -194,17 +195,4 @@ public function getParsedCode($commented, $identLevel)
return $strOut;
}

/**
* Return the parsed comments
*
* @return string
*/
public function getComments( $identLevel ) {
$strOut = parent::getComments( $identLevel );
$strOut = str_replace( "__COMMENT__",
"MyFuses:request:action:iflux:templateConfigure name=\"" .
$this->getName() . "\"", $strOut );
return $strOut;
}

}

0 comments on commit 03c4411

Please sign in to comment.