small fixes

This commit is contained in:
Steffen Schröder
2014-04-27 16:31:46 +02:00
parent 483d673e5f
commit 7a6566691c
3 changed files with 10 additions and 6 deletions

View File

@ -273,11 +273,13 @@ class ManiaLink {
$stylesheetXml = $this->stylesheet->render($domDocument);
$maniaLink->appendChild($stylesheetXml);
}
if ($this->script->needsRendering()) {
$scriptXml = $this->script->render($domDocument);
$maniaLink->appendChild($scriptXml);
if ($this->script) {
if ($this->script->needsRendering()) {
$scriptXml = $this->script->render($domDocument);
$maniaLink->appendChild($scriptXml);
}
$this->script->resetGenericScriptLabels();
}
$this->script->resetGenericScriptLabels();
if ($isChild) {
return $maniaLink;
}