Permalink
Browse files

allow empty keys in tpHTML::head()

  • Loading branch information...
1 parent 889aa3a commit 25f287eab777d5fbd66a0c3af7f26829b5af470f @jvinet committed May 17, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 pronto/plugins/template/html.php
@@ -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);
}

0 comments on commit 25f287e

Please sign in to comment.