1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 14:44:29 +02:00

Case cleanup toHtml() should be toHTML()

This commit is contained in:
Cameron
2019-02-26 12:22:36 -08:00
parent beb1734681
commit 1dbc90143f
64 changed files with 147 additions and 139 deletions

View File

@@ -701,7 +701,7 @@ TMPO;
if (isset($potential))
{
//$text = ADLAN_ERR_3."<br /><br />";
$mes->addWarning($tp->toHtml(ADLAN_ERR_3, true));
$mes->addWarning($tp->toHTML(ADLAN_ERR_3, true));
$text = '<ul>';
foreach ($potential as $p_file)
{

View File

@@ -626,7 +626,7 @@ class admin_log_form_ui extends e_admin_form_ui
case 'read': // List Page
$text = preg_replace_callback("#\[!(\w+?)(=.+?){0,1}!]#", 'log_process', $curVal);
$text = $tp->toHtml($text,false,'E_BODY');
$text = $tp->toHTML($text,false,'E_BODY');
if(strpos($text,'Array')!==false || strlen($text)>300)
{

View File

@@ -443,7 +443,7 @@ class cron_admin_ui extends e_admin_ui
if (method_exists($obj, $method_name))
{
$message = str_replace('[x]', $class_name." : ".$method_name, LAN_CRON_62);//Executing config function [b][x][/b]
$message = e107::getParser()->toHtml($message,true);
$message = e107::getParser()->toHTML($message,true);
$mes->add($message, E_MESSAGE_DEBUG);
if ($return == 'boolean')
{
@@ -458,7 +458,7 @@ class cron_admin_ui extends e_admin_ui
else
{
$message = str_replace('[x]', $method_name."()", LAN_CRON_63 );//Config function [b][x][/b] NOT found.
$message = e107::getParser()->toHtml($message,true);
$message = e107::getParser()->toHTML($message,true);
$mes->add($message, E_MESSAGE_DEBUG);
}
}
@@ -861,7 +861,7 @@ class cron
{
if ($func['function'] == $method)
{
return $tp->toHtml($func['name']);
return $tp->toHTML($func['name']);
}
}
}

View File

@@ -761,7 +761,7 @@ class system_tools
$message .= '<li>'.DBLAN_88.'</li>';
$message .= '</ul>';
$mes->add($tp->toHtml($message,true), E_MESSAGE_WARNING);
$mes->add($tp->toHTML($message,true), E_MESSAGE_WARNING);
$text .= "
<form method='post' action='".e_SELF."' id='linkform'>
@@ -1601,7 +1601,7 @@ class system_tools
$text .= "
<tr>
<td>".$tp->toHtml($row['plugin_name'], FALSE, "defs,emotes_off")."</td>
<td>".$tp->toHTML($row['plugin_name'], FALSE, "defs,emotes_off")."</td>
<td>".$row['plugin_path']."</td>
<td>";

View File

@@ -748,7 +748,7 @@ class eurl_admin_form_ui extends e_admin_form_ui
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4>'.$tp->toHtml($title,false,'TITLE').'</h4>
<h4>'.$tp->toHTML($title,false,'TITLE').'</h4>
</div>
<div class="modal-body">
<p>';

View File

@@ -613,7 +613,7 @@ class links_admin_form_ui extends e_admin_form_ui
{
$newkey .= "(".$val['parm'].")";
}
$func[$newkey] = $tp->toHtml($val['name'],'','TITLE');
$func[$newkey] = $tp->toHTML($val['name'],'','TITLE');
}
$this->linkFunctions[$cat] = $func;
}

View File

@@ -1496,12 +1496,12 @@ class e_layout
$checked = ($listtype == 1) ? " checked='checked' " : "";
$text .= $frm->radio('listtype', 1, $checked, array('label'=> $tp->toHtml(MENLAN_26,true), 'class'=> 'e-save'));
$text .= $frm->radio('listtype', 1, $checked, array('label'=> $tp->toHTML(MENLAN_26,true), 'class'=> 'e-save'));
$text .= "<br />";
// $text .= "<input type='radio' class='e-save' {$checked} name='listtype' value='1' /> ".MENLAN_26."<br />";
$checked = ($listtype == 2) ? " checked='checked' " : "";
$text .= $frm->radio('listtype', 2, $checked, array('label'=> $tp->toHtml(MENLAN_27,true), 'class'=> 'e-save'));
$text .= $frm->radio('listtype', 2, $checked, array('label'=> $tp->toHTML(MENLAN_27,true), 'class'=> 'e-save'));
// $text .= "<input type='radio' class='e-save' {$checked} name='listtype' value='2' /> ".MENLAN_27."<br />";

View File

@@ -321,7 +321,7 @@ class news_sub_form_ui extends e_admin_form_ui
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4>'.$tp->toHtml($submitnews_title,false,'TITLE').'</h4>
<h4>'.$tp->toHTML($submitnews_title,false,'TITLE').'</h4>
</div>
<div class="submitnews modal-body">
<p>';

View File

@@ -732,7 +732,7 @@ class plugin_ui extends e_admin_ui
$text = "
<form action='".e_SELF."?".e_QUERY."' method='post'>
<fieldset id='core-plugin-confirmUninstall'>
<legend>".EPL_ADLAN_54." ".$tp->toHtml($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")."</legend>
<legend>".EPL_ADLAN_54." ".$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")."</legend>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
@@ -861,7 +861,7 @@ class plugin_ui extends e_admin_ui
";
return $text;
// e107::getRender()->tablerender(EPL_ADLAN_63.SEP.$tp->toHtml($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"),$mes->render(). $text);
// e107::getRender()->tablerender(EPL_ADLAN_63.SEP.$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"),$mes->render(). $text);
}
/*
@@ -2165,7 +2165,7 @@ class pluginmanager_form extends e_form
if ($this->plug['plugin_version'] != $this->plug_vars['@attributes']['version'] && $this->plug['plugin_installflag'])
{
// $text .= "<br /><input type='button' class='btn' onclick=\"location.href='".e_SELF."?upgrade.{$this->plug['plugin_id']}'\" title='".EPL_UPGRADE." to v".$this->plug_vars['@attributes']['version']."' value='".EPL_UPGRADE."' />";
e107::getMessage()->addInfo("<b>".$tp->toHtml($this->plug['plugin_name'],false,'TITLE')."</b> is ready to be upgraded. (see below)"); // TODO LAN
e107::getMessage()->addInfo("<b>".$tp->toHTML($this->plug['plugin_name'],false,'TITLE')."</b> is ready to be upgraded. (see below)"); // TODO LAN
$text .= "<a class='btn btn-default' href='".e_SELF."?upgrade.{$this->plug['plugin_id']}' title=\"".EPL_UPGRADE." v".$this->plug_vars['@attributes']['version']."\" >".ADMIN_UPGRADEPLUGIN_ICON."</a>";
}
@@ -3289,7 +3289,7 @@ class pluginManager{
$text = "
<form action='".e_SELF."?".e_QUERY."' method='post'>
<fieldset id='core-plugin-confirmUninstall'>
<legend>".EPL_ADLAN_54." ".$tp->toHtml($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")."</legend>
<legend>".EPL_ADLAN_54." ".$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")."</legend>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
@@ -3411,7 +3411,7 @@ class pluginManager{
</fieldset>
</form>
";
// e107::getRender()->tablerender(EPL_ADLAN_63.SEP.$tp->toHtml($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"),$mes->render(). $text);
// e107::getRender()->tablerender(EPL_ADLAN_63.SEP.$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"),$mes->render(). $text);
}
@@ -3582,7 +3582,7 @@ class pluginBuilder
$info .= "<li>".EPL_ADLAN_106."</li>";
$info .= "</ul>";
// $mes->addInfo($tp->toHtml($info,true));
// $mes->addInfo($tp->toHTML($info,true));
$text = $frm->open('createPlugin','get', e_SELF);
$text .= $frm->hidden('action', 'build');

View File

@@ -252,7 +252,7 @@ class e107Update
foreach($list as $path=>$val)
{
$name = !empty($val['@attributes']['lan']) ? $tp->toHtml($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];
$name = !empty($val['@attributes']['lan']) ? $tp->toHTML($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];
$text .= "<tr>
<td>".$name."</td>

View File

@@ -380,7 +380,7 @@ class users_admin_ui extends e_admin_ui
{
$field = "user_".$row['user_extended_struct_name'];
// $title = ucfirst(str_replace("user_","",$field));
$label = $tp->toHtml($row['user_extended_struct_text'],false,'defs');
$label = $tp->toHTML($row['user_extended_struct_text'],false,'defs');
$this->fields[$field] = array('__tableField'=>'ue.'.$field, 'title' => $label,'width' => 'auto', 'type'=>'method', 'readParms'=>array('ueType'=>$row['user_extended_struct_type']), 'method'=>'user_extended', 'data'=>false, 'tab'=>1, 'noedit'=>false);
$this->extended[] = $field;
@@ -943,9 +943,9 @@ class users_admin_ui extends e_admin_ui
$rplc_from = array('[x]', '[y]', '[z]');
$rplc_to = array($sysuser->getId(), $sysuser->getName(), $sysuser->getValue('email'));
$message = str_replace($rplc_from, $rplc_to, USRLAN_228);
$message = e107::getParser()->toHtml($message,true);
$message = e107::getParser()->toHTML($message,true);
$mes->addWarning($message);
$mes->addWarning(e107::getParser()->toHtml(USRLAN_229,true));
$mes->addWarning(e107::getParser()->toHTML(USRLAN_229,true));
}
}
@@ -1414,7 +1414,7 @@ class users_admin_ui extends e_admin_ui
{
$allData['data']['user_name'] = $allData['data']['user_loginname'];
$message = str_replace('[x]', $allData['data']['user_loginname'], USRLAN_237);
$message = e107::getParser()->toHtml($message,true);
$message = e107::getParser()->toHTML($message,true);
$mes->addWarning($message);
//$allData['errors']['user_name'] = ERR_FIELDS_DIFFERENT;
}