mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
some more php5 and html static fixes
This commit is contained in:
parent
b0ce76ad83
commit
6e9829faf6
@ -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)
|
* 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
|
* @return string/boolean human readable name or false if not found/loadable
|
||||||
*/
|
*/
|
||||||
protected function loadExtension($type)
|
function loadExtension($type)
|
||||||
{
|
{
|
||||||
list($class,$app) = explode('.',$type);
|
list($class,$app) = explode('.',$type);
|
||||||
$class .= '_widget';
|
$class .= '_widget';
|
||||||
|
@ -375,7 +375,7 @@
|
|||||||
$link = $this->etemplate->as_array(-1);
|
$link = $this->etemplate->as_array(-1);
|
||||||
$link['menuaction'] = 'etemplate.editor.edit';
|
$link['menuaction'] = 'etemplate.editor.edit';
|
||||||
$link['version'] = $newest_version;
|
$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))
|
if (!is_array($this->extensions))
|
||||||
@ -460,7 +460,7 @@
|
|||||||
$new_content = $this->etemplate->as_array() + array(
|
$new_content = $this->etemplate->as_array() + array(
|
||||||
'msg' => $msg,
|
'msg' => $msg,
|
||||||
'xml_label' => $xml_label,
|
'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');
|
$editor =& new etemplate('etemplate.editor.new');
|
||||||
@ -495,7 +495,7 @@
|
|||||||
</script>';
|
</script>';
|
||||||
if ($app != 'etemplate' && file_exists(EGW_SERVER_ROOT.'/'.$app.'/templates/default/app.css'))
|
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;
|
$editor->data[$editor->rows]['A']['obj'] = &$this->etemplate;
|
||||||
$vals = $content['vals'];
|
$vals = $content['vals'];
|
||||||
|
Loading…
Reference in New Issue
Block a user