Skip to content

Commit

Permalink
Use dolPrintHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 16, 2025
1 parent 33ca339 commit fbe9d4f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/alumni/admin/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
$newname = preg_replace('/_'.preg_quote(strtolower($myTmpObjectKey), '/').'/', '', $name);
print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.urlencode($newname).'&object='.urlencode($myTmpObjectKey).'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
} else {
print img_object($langs->trans("PreviewNotAvailable"), 'generic');
print img_object($langs->transnoentitiesnoconv("PreviewNotAvailable"), 'generic');
}
print '</td>';

Expand Down
4 changes: 2 additions & 2 deletions htdocs/alumni/class/survey.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -807,9 +807,9 @@ public function getNomUrl($withpicto = 0, $option = '', $notooltip = 0, $morecss
if (empty($notooltip)) {
if (getDolGlobalInt('MAIN_OPTIMIZEFORTEXTBROWSER')) {
$label = $langs->trans("ShowSurvey");
$linkclose .= ' alt="'.dol_escape_htmltag($label, 1).'"';
$linkclose .= ' alt="'.dolPrintHTMLForAttribute($label).'"';
}
$linkclose .= ($label ? ' title="'.dol_escape_htmltag($label, 1).'"' : ' title="tocomplete"');
$linkclose .= ($label ? ' title="'.dolPrintHTMLForAttribute($label).'"' : ' title="tocomplete"');
$linkclose .= $dataparams.' class="'.$classfortooltip.($morecss ? ' '.$morecss : '').'"';
} else {
$linkclose = ($morecss ? ' class="'.$morecss.'"' : '');
Expand Down
4 changes: 2 additions & 2 deletions htdocs/captureserver/class/captureserver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,9 @@ public function getNomUrl($withpicto = 0, $option = '', $notooltip = 0, $morecss
if (empty($notooltip)) {
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
$label=$langs->trans("ShowCaptureServer");
$linkclose.=' alt="'.dol_escape_htmltag($label, 1).'"';
$linkclose.=' alt="'.dolPrintHTMLForAttribute($label).'"';
}
$linkclose.=' title="'.dol_escape_htmltag($label, 1).'"';
$linkclose.=' title="'.dolPrintHTMLForAttribute($label).'"';
$linkclose.=' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
} else $linkclose = ($morecss?' class="'.$morecss.'"':'');

Expand Down
4 changes: 2 additions & 2 deletions htdocs/ovh/class/ovhserver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ function getNomUrl($withpicto = 0, $option = '', $notooltip = 0, $morecss = '')
if (empty($notooltip)) {
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
$label=$langs->trans("ShowServer");
$linkclose.=' alt="'.dol_escape_htmltag($label, 1).'"';
$linkclose.=' alt="'.dolPrintHTMLForAttribute($label).'"';
}
$linkclose.=' title="'.dol_escape_htmltag($label, 1).'"';
$linkclose.=' title="'.dolPrintHTMLForAttribute($label).'"';
$linkclose.=' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
} else $linkclose = ($morecss?' class="'.$morecss.'"':'');

Expand Down
2 changes: 1 addition & 1 deletion htdocs/stancerdolicloud/admin/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
$newname = preg_replace('/_'.preg_quote(strtolower($myTmpObjectKey), '/').'/', '', $name);
print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.urlencode($newname).'&object='.urlencode($myTmpObjectKey).'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
} else {
print img_object($langs->trans("PreviewNotAvailable"), 'generic');
print img_object($langs->transnoentitiesnoconv("PreviewNotAvailable"), 'generic');
}
print '</td>';

Expand Down

0 comments on commit fbe9d4f

Please sign in to comment.