Skip to content

Commit

Permalink
allow empty keys in tpHTML::head()
Browse files Browse the repository at this point in the history
  • Loading branch information
jvinet committed May 17, 2011
1 parent 889aa3a commit 25f287e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pronto/plugins/template/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function tpHtml() {
* @param string $key A unique key for this code or HTML
* @param string $val The code/HTML itself
*/
function head($key, $val) {
function head($key, $val='') {
if($val == '') $val = $key;
$this->web->queue_html_head($key, $val);
}

Expand Down

0 comments on commit 25f287e

Please sign in to comment.