diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 89e560b793..5c02f74a7a 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -168,7 +168,7 @@ abstract class egw_framework * * @return string with html */ - abstract function header(); + abstract function header(array $extra=array()); /** * Returns the html from the body-tag til the main application area (incl. opening div tag) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index 4060e20f43..291294ccc2 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -82,9 +82,10 @@ class idots_framework extends egw_framework /** * Returns the html-header incl. the opening body tag * + * @param array $extra=array() extra attributes passed as data-attribute to egw.js * @return string with html */ - function header() + function header(array $extra=array()) { // make sure header is output only once if (self::$header_done) return ''; @@ -110,7 +111,7 @@ class idots_framework extends egw_framework // hide location bar egw_framework::set_onload('window.setTimeout(function(){window.scrollTo(0, 1);}, 100);'); } - $this->tpl->set_var($this->_get_header()); + $this->tpl->set_var($this->_get_header($extra)); $content .= $this->tpl->fp('out','head');