diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-30 18:13:46 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-30 18:13:46 +0100 |
commit | bed81ea854119b1f48d39a5da3381c3eb968838a (patch) | |
tree | 43fb50cf3d5a8a4299824fd638ceb747cec8d5a0 /lib/public/util.php | |
parent | 146c46b73a5b780fafd400dfa1881c14457cb4a2 (diff) | |
parent | 510d0b2cf3c108447f42fcb119560175134fb0f6 (diff) | |
download | nextcloud-server-bed81ea854119b1f48d39a5da3381c3eb968838a.tar.gz nextcloud-server-bed81ea854119b1f48d39a5da3381c3eb968838a.zip |
Merge pull request #11080 from owncloud/addheader-text-2
Fix the addHeader tag attributes text methods to not ignore the text parameter
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 22ded1d0fc5..a87d26a4004 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -147,12 +147,14 @@ class Util { /** * Add a custom element to the header + * If $text is null then the element will be written as empty element. + * So use "" to get a closing tag. * @param string $tag tag name of the element * @param array $attributes array of attributes for the element * @param string $text the text content for the element */ - public static function addHeader( $tag, $attributes, $text='') { - \OC_Util::addHeader( $tag, $attributes, $text ); + public static function addHeader($tag, $attributes, $text=null) { + \OC_Util::addHeader($tag, $attributes, $text); } /** |