some more php5 and html static fixes

This commit is contained in:
Ralf Becker 2008-03-10 15:49:46 +00:00
parent b0ce76ad83
commit 6e9829faf6
2 changed files with 4 additions and 4 deletions

View File

@ -464,7 +464,7 @@ class boetemplate extends soetemplate
* the $name might be "$name.$app" to give a app-name (default is the current app,or template-name)
* @return string/boolean human readable name or false if not found/loadable
*/
protected function loadExtension($type)
function loadExtension($type)
{
list($class,$app) = explode('.',$type);
$class .= '_widget';

View File

@ -375,7 +375,7 @@
$link = $this->etemplate->as_array(-1);
$link['menuaction'] = 'etemplate.editor.edit';
$link['version'] = $newest_version;
$msg = lang("newer version '%1' exists !!!",$this->etemplate->html->a_href($newest_version,$link));
$msg = lang("newer version '%1' exists !!!",html::a_href($newest_version,$link));
}
}
if (!is_array($this->extensions))
@ -460,7 +460,7 @@
$new_content = $this->etemplate->as_array() + array(
'msg' => $msg,
'xml_label' => $xml_label,
'xml' => $xml ? '<pre>'.$this->etemplate->html->htmlspecialchars($xml)."</pre>\n" : '',
'xml' => $xml ? '<pre>'.html::htmlspecialchars($xml)."</pre>\n" : '',
);
$editor =& new etemplate('etemplate.editor.new');
@ -495,7 +495,7 @@
</script>';
if ($app != 'etemplate' && file_exists(EGW_SERVER_ROOT.'/'.$app.'/templates/default/app.css'))
{
$new_content['onclick'] .= $editor->html->style('@import url('.$GLOBALS['egw_info']['server']['webserver_url'].'/'.$app.'/templates/default/app.css);');
$new_content['onclick'] .= html::style('@import url('.$GLOBALS['egw_info']['server']['webserver_url'].'/'.$app.'/templates/default/app.css);');
}
$editor->data[$editor->rows]['A']['obj'] = &$this->etemplate;
$vals = $content['vals'];