summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-28 11:15:58 +0100
committerLukas Reschke <lukas@owncloud.com>2014-10-28 11:15:58 +0100
commit510d0b2cf3c108447f42fcb119560175134fb0f6 (patch)
treee5fa478087f35655f5857ebefb5c4ba576503697 /core/templates/layout.base.php
parent7466ff09bb1b02de45b62a622ce51e4f680f2658 (diff)
downloadnextcloud-server-510d0b2cf3c108447f42fcb119560175134fb0f6.tar.gz
nextcloud-server-510d0b2cf3c108447f42fcb119560175134fb0f6.zip
Fix the "addHeader($tag, $attributes, $text)" methods to not ignore the $text parameter
Also support closing tags with no text content given Conflicts: lib/private/template.php
Diffstat (limited to 'core/templates/layout.base.php')
-rw-r--r--core/templates/layout.base.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index 3325bc9165e..2b496c23246 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -21,15 +21,7 @@
<?php foreach ($_['jsfiles'] as $jsfile): ?>
<script type="text/javascript" src="<?php print_unescaped($jsfile); ?>"></script>
<?php endforeach; ?>
- <?php foreach ($_['headers'] as $header): ?>
- <?php
- print_unescaped('<'.$header['tag'].' ');
- foreach ($header['attributes'] as $name => $value) {
- print_unescaped("$name='$value' ");
- };
- print_unescaped('/>');
- ?>
- <?php endforeach; ?>
+ <?php print_unescaped($_['headers']); ?>
</head>
<body id="body-public">
<noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>