Fixing issues with files in modules/cms
This commit is contained in:
parent
f85087eac6
commit
509e7d2a12
|
|
@ -231,6 +231,7 @@ class CmsCompoundObject extends CmsObject
|
|||
$content[] = '<?php'.PHP_EOL.$this->code.PHP_EOL.'?>';
|
||||
} else {
|
||||
$content[] = $this->code;
|
||||
}
|
||||
}
|
||||
|
||||
$content[] = $this->markup;
|
||||
|
|
|
|||
|
|
@ -278,8 +278,9 @@ class Controller extends BaseController
|
|||
$template = $this->twig->loadTemplate($this->page->getFullPath());
|
||||
$this->pageContents = $template->render($this->vars);
|
||||
CmsException::unmask();
|
||||
} else
|
||||
} else {
|
||||
$this->pageContents = $apiResult;
|
||||
}
|
||||
|
||||
/*
|
||||
* Render the layout
|
||||
|
|
|
|||
|
|
@ -43,8 +43,9 @@ class PlaceholderTokenParser extends Twig_TokenParser
|
|||
|
||||
$body = $this->parser->subparse([$this, 'decidePlaceholderEnd'], true);
|
||||
$stream->expect(Twig_Token::BLOCK_END_TYPE);
|
||||
} else
|
||||
} else {
|
||||
$params = $this->loadParams($stream);
|
||||
}
|
||||
|
||||
return new PlaceholderNode($name, $params, $body, $token->getLine(), $this->getTag());
|
||||
}
|
||||
|
|
@ -75,7 +76,11 @@ class PlaceholderTokenParser extends Twig_TokenParser
|
|||
break;
|
||||
|
||||
default:
|
||||
throw new Twig_Error_Syntax(sprintf('Invalid syntax in the placeholder tag. Line %s', $lineno), $stream->getCurrent()->getLine(), $stream->getFilename());
|
||||
throw new Twig_Error_Syntax(
|
||||
sprintf('Invalid syntax in the placeholder tag. Line %s', $lineno),
|
||||
$stream->getCurrent()->getLine(),
|
||||
$stream->getFilename()
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue