From 11a95e181b24ad5b82fc2684a0084090a0be44c2 Mon Sep 17 00:00:00 2001
From: Franck Villaume
Date: Tue, 7 Dec 2021 14:32:43 +0100
Subject: [PATCH] do not use but . do not use but . Part 1
---
src/common/docman/views/listfile.php | 2 +-
src/common/docman/views/listtrashfile.php | 2 +-
src/common/frs/views/listpackages.php | 2 +-
src/common/tracker/include/ArtifactHtml.class.php | 4 ++--
src/common/tracker/include/ArtifactTypeHtml.class.php | 6 +++---
src/common/tracker/views/form-updateextrafield.php | 2 +-
src/common/widget/Widget_MyMonitoredDocuments.class.php | 2 +-
src/common/widget/Widget_MyMonitoredForums.class.php | 2 +-
src/plugins/blocks/www/index.php | 2 +-
.../globalsearch/common/globalsearch_stats_boxes.php | 2 +-
src/plugins/scmbzr/common/BzrPlugin.class.php | 2 +-
src/plugins/scmgit/common/GitPlugin.class.php | 6 +++---
src/plugins/scmhg/common/HgPlugin.class.php | 8 ++++----
src/plugins/scmsvn/common/SVNPlugin.class.php | 6 +++---
src/www/admin/approve-pending.php | 2 +-
.../renderers/AdvancedSearchHtmlSearchRenderer.class.php | 2 +-
src/www/tracker/roadmap.php | 4 ++--
src/www/users | 2 +-
18 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/common/docman/views/listfile.php b/src/common/docman/views/listfile.php
index 58b99146d0..53b7f097b0 100644
--- a/src/common/docman/views/listfile.php
+++ b/src/common/docman/views/listfile.php
@@ -184,7 +184,7 @@ if ($DocGroupName) {
if ($childgroup_id) {
$headerPath .= _('Subproject')._(': ').util_make_link(DOCMAN_BASEURL.$g->getID(), $g->getPublicName()).'::';
}
- $headerPath .= html_e('i', array(), preg_replace('/\/\//','/', $dgpath.'/'.$DocGroupName), false);
+ $headerPath .= html_e('em', array(), preg_replace('/\/\//','/', $dgpath.'/'.$DocGroupName), false);
echo html_e('h2', array('class' => 'docman_h2'), $headerPath, false);
$max = ($nbDocs > ($start + $paging)) ? ($start + $paging) : $nbDocs;
echo $HTML->paging_top($start, $paging, $nbDocs, $max, $redirecturl, array('style' => 'display:inline-block'));
diff --git a/src/common/docman/views/listtrashfile.php b/src/common/docman/views/listtrashfile.php
index 88ba655d51..fa1dc3d146 100644
--- a/src/common/docman/views/listtrashfile.php
+++ b/src/common/docman/views/listtrashfile.php
@@ -134,7 +134,7 @@ if ($DocGroupName) {
if ($childgroup_id) {
$headerPath .= _('Subproject')._(': ').util_make_link(DOCMAN_BASEURL.$g->getID(), $g->getPublicName()).'::';
}
- $headerPath .= html_e('i', array(), preg_replace('/\/\//','/', $dgpath.'/'.$DocGroupName), false).' ';
+ $headerPath .= html_e('em', array(), preg_replace('/\/\//','/', $dgpath.'/'.$DocGroupName), false).' ';
echo html_e('h2', array('class' => 'docman_h2'), $headerPath, false);
if ($DocGroupName != '.trash') {
echo util_make_link('#', $HTML->getConfigurePic(_('Edit this folder'), 'edit'), array('id' => 'docman-editdirectory', 'onclick' => 'javascript:controllerListFile.toggleEditDirectoryView()'), true);
diff --git a/src/common/frs/views/listpackages.php b/src/common/frs/views/listpackages.php
index 0bd981acd3..f86d76b4d6 100644
--- a/src/common/frs/views/listpackages.php
+++ b/src/common/frs/views/listpackages.php
@@ -186,7 +186,7 @@ EOS;
$rnum++;
}
}
- $content .= html_e('span', array(), html_e('b', array(), _('Linked Roadmaps')._(': ')).$urls, false);
+ $content .= html_e('span', array(), html_e('strong', array(), _('Linked Roadmaps')._(': ')).$urls, false);
}
}
diff --git a/src/common/tracker/include/ArtifactHtml.class.php b/src/common/tracker/include/ArtifactHtml.class.php
index 9ccadaa8be..755d38ec51 100644
--- a/src/common/tracker/include/ArtifactHtml.class.php
+++ b/src/common/tracker/include/ArtifactHtml.class.php
@@ -186,7 +186,7 @@ function hide_edit_button(id) {
if (db_result($result, $i, 'old_value')) {
$return .= date(_('Y-m-d H:i'),db_result($result, $i, 'old_value'));
} else {
- $return .= ''._('None').'';
+ $return .= html_e('em', array(), _('None'));
}
} else {
@@ -237,7 +237,7 @@ function hide_edit_button(id) {
$arg['class'] = 'artifact_closed';
}
$return .= '
';
- $return .= util_make_link($url, $text, $arg).' '.util_make_link($url, $arr['summary']).' ('._('Relation')._(': ').$arr['field_name'].')';
+ $return .= util_make_link($url, $text, $arg).' '.util_make_link($url, $arr['summary']).' '.html_e('em', array(), '('._('Relation')._(': ').$arr['field_name'].')');
}
}
$return .= '
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 4bf196b1da..2d3bb6e333 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -350,14 +350,14 @@ class ArtifactTypeHtml extends ArtifactType {
$str = $this->renderIntegerField($efarr[$i]['extra_field_id'], $selected[$efarr[$i]['extra_field_id']], $efarr[$i]['attribute1'], $efarr[$i]['attribute2'], $attrs);
}
if ($mode == 'QUERY') {
- $post_name = ' '._('(%% for wildcards)').' ';
+ $post_name = ' '.html_e('em', array(), _('(%% for wildcards)')).' ';
}
} elseif ($efarr[$i]['field_type'] == ARTIFACT_EXTRAFIELDTYPE_TEXTAREA) {
$str = $this->renderTextArea($efarr[$i]['extra_field_id'], $selected[$efarr[$i]['extra_field_id']], $efarr[$i]['attribute1'], $efarr[$i]['attribute2'], $attrs);
if ($mode == 'QUERY') {
- $post_name = ' '._('(%% for wildcards)').'';
+ $post_name = ' '.html_e('em', array(), _('(%% for wildcards)'));
}
} elseif ($efarr[$i]['field_type'] == ARTIFACT_EXTRAFIELDTYPE_MULTISELECT) {
@@ -437,7 +437,7 @@ class ArtifactTypeHtml extends ArtifactType {
$str = $this->renderMultiReleaseField($efarr[$i]['extra_field_id'], $selected[$efarr[$i]['extra_field_id']], $efarr[$i]['show100'], $efarr[$i]['show100label'], $show_any, $text_any,false, $attrs);
} elseif ($efarr[$i]['field_type'] == ARTIFACT_EXTRAFIELDTYPE_DATERANGE) {
if ($mode == 'QUERY') {
- $post_name = ' '._('(YYYY-MM-DD YYYY-MM-DD Format)').'';
+ $post_name = ' '.html_e('em', array(), _('(YYYY-MM-DD YYYY-MM-DD Format)'));
}
$str = $this->renderDateRange($efarr[$i]['extra_field_id'], $selected[$efarr[$i]['extra_field_id']], $attrs);
} elseif ($efarr[$i]['field_type'] == ARTIFACT_EXTRAFIELDTYPE_EFFORT) {
diff --git a/src/common/tracker/views/form-updateextrafield.php b/src/common/tracker/views/form-updateextrafield.php
index 938367a4ce..da726bf09a 100644
--- a/src/common/tracker/views/form-updateextrafield.php
+++ b/src/common/tracker/views/form-updateextrafield.php
@@ -120,7 +120,7 @@ if (!$ac || !is_object($ac)) {
echo html_ac(html_ap() - 1);
echo html_ao('p');
- echo html_e('label', array('for'=>'show100label'), html_e('b', array(), _('Label for the none value')).html_e('br'));
+ echo html_e('label', array('for'=>'show100label'), html_e('strong', array(), _('Label for the none value')).html_e('br'));
echo html_e('input', array('type'=>'text', 'name'=>'show100label', 'value'=>$ac->getShow100label(), 'size'=>'30'));
echo html_ac(html_ap() - 1);
} else {
diff --git a/src/common/widget/Widget_MyMonitoredDocuments.class.php b/src/common/widget/Widget_MyMonitoredDocuments.class.php
index 1813889fe6..7ec5040b4f 100644
--- a/src/common/widget/Widget_MyMonitoredDocuments.class.php
+++ b/src/common/widget/Widget_MyMonitoredDocuments.class.php
@@ -77,7 +77,7 @@ class Widget_MyMonitoredDocuments extends Widget {
$count_new = max(0, $count_diff);
$cells = array();
$cells[] = array($hide_url.util_make_link('/docman/?group_id='.$distinctMonitorGroupId, $groupObject->getPublicName()).' '.
- '['.$monitorElementIds.($count_new ? ', '.html_e('b', array(), sprintf(_('%s new'), $count_new)).']' : ']'), 'colspan' => 2);
+ '['.$monitorElementIds.($count_new ? ', '.html_e('strong', array(), sprintf(_('%s new'), $count_new)).']' : ']'), 'colspan' => 2);
$html_hdr = $HTML->multiTableRow(array('class' => 'boxitem'), $cells);
$html = '';
if (!$hide_now) {
diff --git a/src/common/widget/Widget_MyMonitoredForums.class.php b/src/common/widget/Widget_MyMonitoredForums.class.php
index d2c61602e8..8cbe49e657 100644
--- a/src/common/widget/Widget_MyMonitoredForums.class.php
+++ b/src/common/widget/Widget_MyMonitoredForums.class.php
@@ -81,7 +81,7 @@ class Widget_MyMonitoredForums extends Widget {
list($hide_now, $count_diff, $hide_url) = my_hide_url('forum', $validDistinctMonitorGroupId, $hide_item_id, count($validMonitoredForumIds), $hide_forum);
$count_new = max(0, $count_diff);
$cells = array();
- $cells[] = array($hide_url.util_make_link('/forum/?group_id='.$validDistinctMonitorGroupId, $groupObject->getPublicName()).'Â Â Â Â ['.count($validMonitoredForumIds).($count_new ? ', '.html_e('b', array(), sprintf(_('%s new'), $count_new)).']' : ']'), 'colspan' => 2);
+ $cells[] = array($hide_url.util_make_link('/forum/?group_id='.$validDistinctMonitorGroupId, $groupObject->getPublicName()).'Â Â Â Â ['.count($validMonitoredForumIds).($count_new ? ', '.html_e('strong', array(), sprintf(_('%s new'), $count_new)).']' : ']'), 'colspan' => 2);
$html_hdr = $HTML->multiTableRow(array('class' => 'boxitem'), $cells);
$html = '';
if (!$hide_now) {
diff --git a/src/plugins/blocks/www/index.php b/src/plugins/blocks/www/index.php
index a1ea653418..9224da6089 100644
--- a/src/plugins/blocks/www/index.php
+++ b/src/plugins/blocks/www/index.php
@@ -199,7 +199,7 @@ if ($type == 'admin') {
$match = '';
if (preg_match('/(.*) index$/', $b, $match)) {
$cells = array();
- $cells[] = array(html_e('b', array(), $blocks_text[$match[1]]), 'colspan' => 4);
+ $cells[] = array(html_e('strong', array(), $blocks_text[$match[1]]), 'colspan' => 4);
echo $HTML->multiTableRow(array(), $cells);
}
$cells = array();
diff --git a/src/plugins/globalsearch/common/globalsearch_stats_boxes.php b/src/plugins/globalsearch/common/globalsearch_stats_boxes.php
index bb19b179fd..4c08654009 100644
--- a/src/plugins/globalsearch/common/globalsearch_stats_boxes.php
+++ b/src/plugins/globalsearch/common/globalsearch_stats_boxes.php
@@ -35,7 +35,7 @@ function show_globalsearch_stats_boxes() {
$return .= globalsearch_box();
$return .= $HTML->boxMiddle(_("Top associated forges"));
$return .= show_top_n_assocsites(5);
- $return .= ""._('Total projects in associated forges')._(': ').html_e('b', array(), stats_get_total_projects_assoc_sites()). "
";
+ $return .= ""._('Total projects in associated forges')._(': ').html_e('strong', array(), stats_get_total_projects_assoc_sites()). "
";
$return .= $HTML->boxBottom();
return $return;
}
diff --git a/src/plugins/scmbzr/common/BzrPlugin.class.php b/src/plugins/scmbzr/common/BzrPlugin.class.php
index 4255bfd1f4..9ce1622d0a 100644
--- a/src/plugins/scmbzr/common/BzrPlugin.class.php
+++ b/src/plugins/scmbzr/common/BzrPlugin.class.php
@@ -128,7 +128,7 @@ over it to the project's administrator.");
$b .= ' ';
$b .= _('Enter your site password when prompted.');
$b .= '
';
- $b .= 'bzr checkout bzr+ssh://'._('developername').'@' . $this->getBoxForProject($project) . forge_get_config('repos_path', 'scmbzr') .'/'. $project->getUnixName().'/'._('branchname').'
' ;
+ $b .= 'bzr checkout bzr+ssh://'.html_e('em', array(), _('developername')).'@' . $this->getBoxForProject($project) . forge_get_config('repos_path', 'scmbzr') .'/'. $project->getUnixName().'/'._('branchname').'
' ;
}
return $b ;
}
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 5216a174d0..5946444a64 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -213,9 +213,9 @@ control over it to the project's administrator.");
$htmlRepo = '';
foreach ($repo_list as $repo_name) {
if (forge_get_config('use_shell_limited')) {
- $htmlRepo .= html_e('kbd', array(), 'git clone '.html_e('i', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.':'.$project->getUnixName().'/'.$repo_name.'.git').html_e('br');
+ $htmlRepo .= html_e('kbd', array(), 'git clone '.html_e('em', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.':'.$project->getUnixName().'/'.$repo_name.'.git').html_e('br');
} else {
- $htmlRepo .= html_e('kbd', array(), 'git clone git+ssh://'.html_e('i', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.forge_get_config('repos_path', 'scmgit').'/'.$project->getUnixName().'/'.$repo_name.'.git').html_e('br');
+ $htmlRepo .= html_e('kbd', array(), 'git clone git+ssh://'.html_e('em', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.forge_get_config('repos_path', 'scmgit').'/'.$project->getUnixName().'/'.$repo_name.'.git').html_e('br');
}
}
$b .= html_e('p', array(), $htmlRepo);
@@ -231,7 +231,7 @@ control over it to the project's administrator.");
' '. _('Enter your site password when prompted.'));
$htmlRepo = '';
foreach ($repo_list as $repo_name) {
- $htmlRepo .= 'git clone '.$protocol.'://'._('developername').'@'.$this->getBoxForProject($project).'/authscm/'._('developername').'/git/'.$project->getUnixName() .'/'. $repo_name .'.git
';
+ $htmlRepo .= 'git clone '.$protocol.'://'.html_e('em', array(), _('developername')).'@'.$this->getBoxForProject($project).'/authscm/'.html_e('em', array(), _('developername')).'/git/'.$project->getUnixName() .'/'. $repo_name .'.git
';
}
$b .= html_e('p', array(), $htmlRepo);
$b .= '';
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php b/src/plugins/scmhg/common/HgPlugin.class.php
index 0f7e5e2475..0e276e94ac 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -142,7 +142,7 @@ Offer DAV or SSH access.");
$htmlRepo = '';
$protocol = forge_get_config('use_ssl', 'scmhg') ? 'https' : 'http';
foreach ($repo_list as $repo_name) {
- $htmlRepo .= html_e('kbd', array(), 'hg clone '.$protocol.'://'.$d.'@'.$this->getBoxForProject($project).'/authscm/'.$d.'/hg/'. $project->getUnixName().'/'.$repo_name).html_e('br');
+ $htmlRepo .= html_e('kbd', array(), 'hg clone '.$protocol.'://'.html_e('em', array(), $d).'@'.$this->getBoxForProject($project).'/authscm/'.$d.'/hg/'. $project->getUnixName().'/'.$repo_name).html_e('br');
}
$b .= html_e('p', array(), $htmlRepo);
$b .= '';
@@ -161,9 +161,9 @@ Offer DAV or SSH access.");
// Warning : the ssh uri MUST be this form : ssh://username@scmbox//path/reponame
// HAVE YOU SEEN THE // starting the path ? Keep in mind the double /
if (forge_get_config('use_shell_limited')) {
- $htmlRepo .= html_e('kbd', array(), 'hg clone ssh://'.html_e('i', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.'/hg/'.$project->getUnixName().'/'.$repo_name).html_e('br');
+ $htmlRepo .= html_e('kbd', array(), 'hg clone ssh://'.html_e('strong', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.'/hg/'.$project->getUnixName().'/'.$repo_name).html_e('br');
} else {
- $htmlRepo .= html_e('kbd', array(), 'hg clone ssh://'.html_e('i', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.'/'.forge_get_config('repos_path', 'scmhg').'/'.$project->getUnixName().'/'.$repo_name).html_e('br');
+ $htmlRepo .= html_e('kbd', array(), 'hg clone ssh://'.html_e('strong', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).$ssh_port.'/'.forge_get_config('repos_path', 'scmhg').'/'.$project->getUnixName().'/'.$repo_name).html_e('br');
}
}
$b .= html_e('p', array(), $htmlRepo);
@@ -179,7 +179,7 @@ Offer DAV or SSH access.");
' '. _('Enter your site password when prompted.'));
$htmlRepo = '';
foreach ($repo_list as $repo_name) {
- $htmlRepo .= html_e('kbd', array(), 'hg clone '.$protocol.'://'.html_e('i', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).'/authscm/'.html_e('i', array(), _('developername'), true, false).'/hg/'.$project->getUnixName().'/'.$repo_name).html_e('br');
+ $htmlRepo .= html_e('kbd', array(), 'hg clone '.$protocol.'://'.html_e('strong', array(), _('developername'), true, false).'@'.$this->getBoxForProject($project).'/authscm/'.html_e('strong', array(), _('developername'), true, false).'/hg/'.$project->getUnixName().'/'.$repo_name).html_e('br');
}
$b .= html_e('p', array(), $htmlRepo);
$b .= '';
diff --git a/src/plugins/scmsvn/common/SVNPlugin.class.php b/src/plugins/scmsvn/common/SVNPlugin.class.php
index 3048d6ae58..7b45bbc437 100644
--- a/src/plugins/scmsvn/common/SVNPlugin.class.php
+++ b/src/plugins/scmsvn/common/SVNPlugin.class.php
@@ -255,9 +255,9 @@ some control over it to the project's administrator.");
$modules = $this->topModule($project, $repo_name);
foreach ($modules as $module) {
if (forge_get_config('use_shell_limited')) {
- $b .= html_e('kbd', array(), 'svn '.$ssh_port.'checkout svn+ssh://'._('developername').'@'.$this->getBoxForProject($project).'/'.$repo_name.$module).html_e('br');
+ $b .= html_e('kbd', array(), 'svn '.$ssh_port.'checkout svn+ssh://'.html_e('em', array(), _('developername')).'@'.$this->getBoxForProject($project).'/'.$repo_name.$module).html_e('br');
} else {
- $b .= html_e('kbd', array(), 'svn '.$ssh_port.'checkout svn+ssh://'._('developername').'@'.$this->getBoxForProject($project).$this->svn_root_fs .'/'.$repo_name.$module).html_e('br');
+ $b .= html_e('kbd', array(), 'svn '.$ssh_port.'checkout svn+ssh://'.html_e('em', array(), _('developername')).'@'.$this->getBoxForProject($project).$this->svn_root_fs .'/'.$repo_name.$module).html_e('br');
}
}
}
@@ -273,7 +273,7 @@ some control over it to the project's administrator.");
foreach ($repo_list as $repo_name) {
$modules = $this->topModule($project, $repo_name);
foreach ($modules as $module) {
- $b .= html_e('kbd', array(), 'svn checkout --username '._('developername').' http'.((forge_get_config('use_ssl', 'scmsvn')) ? 's' : '').'://'.$this->getBoxForProject($project).'/authscm/'._('developername').'/svn/'.$repo_name.$module).html_e('br');
+ $b .= html_e('kbd', array(), 'svn checkout --username '.html_e('em', array(), _('developername')).' http'.((forge_get_config('use_ssl', 'scmsvn')) ? 's' : '').'://'.$this->getBoxForProject($project).'/authscm/'.html_e('em', array(), _('developername')).'/svn/'.$repo_name.$module).html_e('br');
}
}
$b .= '';
diff --git a/src/www/admin/approve-pending.php b/src/www/admin/approve-pending.php
index d80154e686..823222d169 100644
--- a/src/www/admin/approve-pending.php
+++ b/src/www/admin/approve-pending.php
@@ -131,7 +131,7 @@ while ($row_grp = db_fetch_array($res_grp)) {
?>
- '. $row_grp['group_name'] . ''; ?>
+
diff --git a/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php b/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
index 1d8037124f..60ea32e7c7 100644
--- a/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
@@ -196,7 +196,7 @@ class AdvancedSearchHtmlSearchRenderer extends HtmlGroupSearchRenderer {
if (count($res) > 0) {
if ($renderer->searchQuery->getRowsTotalCount() >= $renderer->searchQuery->getRowsPerPage())
- $result .= '' . sprintf(_('Note: only the first %d results for this category are displayed.'), $renderer->searchQuery->getRowsPerPage()) . '';
+ $result .= html_e('em', array(), sprintf(_('Note: only the first %d results for this category are displayed.'), $renderer->searchQuery->getRowsPerPage()));
$result .= $HTML->listTabletop($renderer->tableHeaders);
$result .= $renderer->getRows();
$result .= $HTML->listTableBottom();
diff --git a/src/www/tracker/roadmap.php b/src/www/tracker/roadmap.php
index 5385bf1590..3b7a6cf127 100644
--- a/src/www/tracker/roadmap.php
+++ b/src/www/tracker/roadmap.php
@@ -486,7 +486,7 @@ if (!$at_arr || count($at_arr) < 1) {
$data = $rel_states[$release_value][$state];
$percent = round($data['count'] / $total_rel_states[$release_value] * 100);
$graph .= ' | ';
- $legend .= ''.$data['name'].': '.$data['count'].' ('.$percent.'%) | ';
+ $legend .= ''.html_e('em', array(), $data['name']._(': ').$data['count'].' ('.$percent.'%)').' | ';
}
}
}
@@ -531,7 +531,7 @@ if (!$at_arr || count($at_arr) < 1) {
$percent = round($data['count'] / $total_rel_art_states[$release_value][$artifact_type_name] * 100);
$total += $data['count'];
$graph .= ' | ';
- $legend .= ''.$data['name'].': '.$data['count'].' ('.$percent.'%) | ';
+ $legend .= ''.html_e('em', array(), $data['name']._(': ').$data['count'].' ('.$percent.'%)').' | ';
}
}
// Display unknown statuses if exists
diff --git a/src/www/users b/src/www/users
index cecdeb8dd0..81c17590ef 100644
--- a/src/www/users
+++ b/src/www/users
@@ -84,7 +84,7 @@ if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {
}
} else { // default HTML view
//now show the user page
- $title = ''.$username.' '._('Profile');
+ $title = html_e('em', array(), $username).' '._('Profile');
if (forge_get_config('use_diary') && session_loggedin() && ($user->getID() != user_getid())) {
if ($user->isMonitoredBy(user_getid())) {
$action = 'deletemonitoring';
--
2.30.2