fix common::get_body_attribs() (gave fatal error, because egw_framework::_get_body_attribs() was protected) and add body_attribs to Sitemgr Template3::get_meta()

This commit is contained in:
Ralf Becker 2011-01-06 20:56:14 +00:00
parent c8afbf93d5
commit c33ad5c2ba
2 changed files with 7 additions and 7 deletions

View File

@ -985,7 +985,7 @@ class common
/**
* Used by template headers for including CSS in the header
*
* @deprecated use framework::_get_css()
* @deprecated use $GLOBALS['egw']->framework->_get_css()
* @return string
*/
static function get_css()
@ -996,23 +996,23 @@ class common
/**
* Used by the template headers for including javascript in the header
*
* @deprecated use framework::_get_js()
* @deprecated use egw_framework::_get_js()
* @return string the javascript to be included
*/
static function get_java_script()
{
return $GLOBALS['egw']->framework->_get_js();
return egw_framework::_get_js();
}
/**
* Returns on(Un)Load attributes from js class
*
* @deprecated use framework::_get_js()
* @deprecated use egw_framework::_get_js()
* @returns string body attributes
*/
static function get_body_attribs()
{
return $GLOBALS['egw']->framework->_get_body_attribs();
return egw_framework::_get_body_attribs();
}
static function hex2bin($data)

View File

@ -669,7 +669,7 @@ abstract class egw_framework
* @author Dave Hall (*based* on verdilak? css inclusion code)
* @return array with keys 'app_css' from the css method of the menuaction-class and 'file_css' (app.css file of the application)
*/
protected function _get_css()
public function _get_css()
{
$app_css = '';
if(isset($_GET['menuaction']))
@ -1057,7 +1057,7 @@ abstract class egw_framework
*
* @returns string the attributes to be used
*/
static protected function _get_body_attribs()
static public function _get_body_attribs()
{
$js = '';
foreach(self::$body_tags as $what => $data)