1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Fixes #4374 help() form method fix.

This commit is contained in:
Cameron 2021-02-09 14:36:40 -08:00
parent b59887c230
commit 1f3e70d40a
2 changed files with 3 additions and 3 deletions

View File

@ -1085,12 +1085,12 @@ class eurl_admin_form_ui extends e_admin_form_ui
</tr>";
$text .= "<tr>";
$text .= "<td>".$lanDef[1]."</td>";
$text .= "<td>".$lanDef[1].$this->help(LAN_EURL_FORM_HELP_DEFAULT, 'before')."</td>";
$text .= "<td class='form-inline'>";
$text .= $this->text('eurl_aliases['.$lanDef[0].']['.$module.']', $defVal, 255, 'size=xlarge');
// $text .= ' ['.$lanDef[1].']';
$text .= "</td><td>";
$text .= $this->help(LAN_EURL_FORM_HELP_DEFAULT);
$text .= $this->help(LAN_EURL_FORM_HELP_DEFAULT, 'after');
$text .= "</td>";
// $help[] = '['.$lanDef[1].'] '.LAN_EURL_FORM_HELP_EXAMPLE.':<br /><strong>'.$url.'</strong>';

View File

@ -3051,7 +3051,7 @@ class e_form
return "<label$for_id class='e-tip legacy'>{$text}</label>";
}
public function help($text, $mode)
public function help($text, $mode='after')
{
if(empty($text)
|| $this->_help_location === -1