Author: ralfbecker
New Revision: 25165
URL: http://www.egroupware.org/viewvc?rev=3D25165&view=3Drev
Log:
removed unnecessary instancations and using static methods of html and egw_=
link class
Modified:
trunk/developer_tools/inc/class.uilangfile.inc.php
Modified: trunk/developer_tools/inc/class.uilangfile.inc.php
URL: http://www.egroupware.org/viewvc/trunk/developer_tools/inc/class.uilan=
gfile.inc.php?rev=3D25165&r1=3D25164&r2=3D25165&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/developer_tools/inc/class.uilangfile.inc.php (original)
+++ trunk/developer_tools/inc/class.uilangfile.inc.php Tue Mar 25 16:34:43 =
2008
@@ -35,11 +35,6 @@
$this->nextmatchs =3D& CreateObject(‘phpgwapi.nextmatchs’);
$GLOBALS[‘egw’]->translation->add_app(‘developer_tools’);
$GLOBALS[‘egw’]->translation->add_app(‘common’);
-
if (!is_object($GLOBALS['egw']->html)) -
{ -
$GLOBALS['egw']->html =3D& CreateObject('phpgwapi.html'); -
} -
$this->html =3D $GLOBALS['egw']->html; }
=
function addphrase()
@@ -214,7 +209,7 @@
{
$mess_id =3D $this->encode_id($key);
$this->template->set_var(‘mess_id’,$mess_id);
-
$this->template->set_var('source_content',$this->html->htmlspecialcha=
rs($data[‘content’]));
-
$this->template->set_var('source_content',html::htmlspecialchars($dat=
a[‘content’]));
$this->template->set_var(‘transapp’,$this->lang_option($app_name,$dat=
a[‘app_name’],“transapp[$mess_id]”));
$this->template->set_var(‘tr_class’,$this->nextmatchs->alternate_row_=
color(’’,true));
$this->template->pfp(‘out’,‘detail’);
@@ -432,8 +427,8 @@
while(list($key,$data) =3D @each($langarray))
{
$mess_id =3D $this->encode_id($key);
-
$content =3D $this->html->htmlspecialchars($mess_id =3D=3D 'charset'=
? $mess_id : $data[‘content’]);
-
$transy =3D $this->html->htmlspecialchars($translation[$key]['conte=
nt’]);
-
$content =3D html::htmlspecialchars($mess_id =3D=3D 'charset' ? $mes=
s_id : $data[‘content’]);
-
$transy =3D html::htmlspecialchars($translation[$key]['content']); $this->template->set_var('mess_id',$mess_id); $this->template->set_var('source_content',$content); $this->template->set_var('content',$transy);
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs