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:47:21 +00:00
parent 6549d3e463
commit 5507c32e4e
2 changed files with 7 additions and 7 deletions

View File

@ -986,7 +986,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()
@ -997,23 +997,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

@ -674,7 +674,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']))
@ -1053,7 +1053,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)