Skip to content

Commit

Permalink
Dev: fixed issue: inheritance only works when layout file changed loc…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
LouisGac committed Jul 17, 2017
1 parent 2feb794 commit 6f39527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/core/LSETwigViewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function renderTemplateForTemplateEditor($sView, $aDatas, $oEditedTemplat
{
$oTemplate = $this->getTemplateForView($sView, $oEditedTemplate);
$line = file_get_contents($oTemplate->viewPath.$sView);
$result = $this->renderTemplateFromString( $line, $aDatas, $oTemplate, true);
$result = $this->renderTemplateFromString( $line, $aDatas, $oEditedTemplate, true);
return $result;
}

Expand All @@ -148,7 +148,7 @@ public function renderTemplateFromFile($sView, $aDatas, $bReturn)
$oRTemplate = Template::model()->getInstance();
$oTemplate = $this->getTemplateForView($sView, $oRTemplate);
$line = file_get_contents($oTemplate->viewPath.$sView);
$result = $this->renderTemplateFromString( $line, $aDatas, $oTemplate, $bReturn);
$result = $this->renderTemplateFromString( $line, $aDatas, $oRTemplate, $bReturn);
if ($bReturn){
Yii::app()->clientScript->registerPackage( $oRTemplate->sPackageName );
return $result;
Expand Down

0 comments on commit 6f39527

Please sign in to comment.