From 59b69cfd553cf6c8e57a955075b26645ae16b27c Mon Sep 17 00:00:00 2001 From: arno <a.vdvegt@ultraware.nl> Date: Tue, 9 Oct 2018 13:08:59 +0200 Subject: [PATCH] Replaced <tt> tags with <code> tags --- modules/cron/templates/croninfo-result.php | 2 +- modules/cron/www/cron.php | 2 +- modules/oauth/templates/registry.list.php | 8 ++++---- templates/includes/attributes.php | 4 ++-- www/errorreport.php | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/cron/templates/croninfo-result.php b/modules/cron/templates/croninfo-result.php index 8cecb5834..e4f0dc169 100644 --- a/modules/cron/templates/croninfo-result.php +++ b/modules/cron/templates/croninfo-result.php @@ -8,7 +8,7 @@ $this->includeAtTemplateBase('includes/header.php'); <?php echo ' <h1>'.$this->t('cron_report_title').'</h1><p>'.$this->t('ran_text'). - ' '.$this->data['time'].'</p>'.'<p>URL: <tt>'.$this->data['url'].'</tt></p>'. + ' '.$this->data['time'].'</p>'.'<p>URL: <code>'.$this->data['url'].'</code></p>'. '<p>Tag: '.$this->data['tag']."</p>\n\n". '<ul><li>'.join('</li><li>', $this->data['summary']).'</li></ul>'; ?> diff --git a/modules/cron/www/cron.php b/modules/cron/www/cron.php index 4a2ec9ab9..fb9305928 100644 --- a/modules/cron/www/cron.php +++ b/modules/cron/www/cron.php @@ -24,7 +24,7 @@ $summary = $croninfo['summary']; if ($cronconfig->getValue('sendemail', true) && count($summary) > 0) { $message = '<h1>Cron report</h1><p>Cron ran at '.$time.'</p>'. - '<p>URL: <tt>'.$url.'</tt></p>'. + '<p>URL: <code>'.$url.'</code></p>'. '<p>Tag: '.$croninfo['tag']."</p>\n\n". '<ul><li>'.join('</li><li>', $summary).'</li></ul>'; diff --git a/modules/oauth/templates/registry.list.php b/modules/oauth/templates/registry.list.php index 912f5a71c..bbccab1d9 100644 --- a/modules/oauth/templates/registry.list.php +++ b/modules/oauth/templates/registry.list.php @@ -16,8 +16,8 @@ foreach ($this->data['entries']['mine'] as $entryc) { $entry = $entryc['value']; $i++; echo '<tr class="'.$rows[$i % 2].'"><td>'. - htmlspecialchars($entry['name']).'</td> <td><tt>'.htmlspecialchars($entry['key']). - '</tt></td><td><a href="registry.edit.php?editkey='.urlencode($entry['key']). + htmlspecialchars($entry['name']).'</td> <td><code>'.htmlspecialchars($entry['key']). + '</code></td><td><a href="registry.edit.php?editkey='.urlencode($entry['key']). '">edit</a><a href="registry.php?delete='.urlencode($entry['key']).'">delete</a></td></tr>'; } if ($i == 0) { @@ -35,8 +35,8 @@ foreach ($this->data['entries']['others'] as $entryc) { $entry = $entryc['value']; $i++; echo '<tr class="'.$rows[$i % 2].'"><td>'. - htmlspecialchars($entry['name']).'</td><td><tt>'.htmlspecialchars($entry['key']). - '</tt></td><td>'.(isset($entry['owner']) ? htmlspecialchars($entry['owner']) : 'No owner'). + htmlspecialchars($entry['name']).'</td><td><code>'.htmlspecialchars($entry['key']). + '</code></td><td>'.(isset($entry['owner']) ? htmlspecialchars($entry['owner']) : 'No owner'). '</td></tr>'; } if ($i == 0) { diff --git a/templates/includes/attributes.php b/templates/includes/attributes.php index 3d80a035a..68230ce74 100644 --- a/templates/includes/attributes.php +++ b/templates/includes/attributes.php @@ -78,7 +78,7 @@ function present_attributes(\SimpleSAML\XHTML\Template $t, $attributes, $namePar if ($nameraw !== $name) { $str .= htmlspecialchars($name).'<br/>'; } - $str .= '<tt>'.htmlspecialchars($nameraw).'</tt>'; + $str .= '<code>'.htmlspecialchars($nameraw).'</code>'; $str .= '</td><td class="attrvalue"><ul>'; foreach ($value as $listitem) { if ($nameraw === 'jpegPhoto') { @@ -93,7 +93,7 @@ function present_attributes(\SimpleSAML\XHTML\Template $t, $attributes, $namePar if ($nameraw !== $name) { $str .= htmlspecialchars($name).'<br/>'; } - $str .= '<tt>'.htmlspecialchars($nameraw).'</tt>'; + $str .= '<code>'.htmlspecialchars($nameraw).'</code>'; $str .= '</td>'; if ($nameraw === 'jpegPhoto') { $str .= '<td class="attrvalue"><img src="data:image/jpeg;base64,'.htmlspecialchars($value[0]). diff --git a/www/errorreport.php b/www/errorreport.php index 4ffe52452..303c97877 100644 --- a/www/errorreport.php +++ b/www/errorreport.php @@ -69,11 +69,11 @@ $message = <<<MESSAGE <p>Track ID:</p> <pre>%s</pre> -<p>Version: <tt>%s</tt></p> +<p>Version: <code>%s</code></p> -<p>Report ID: <tt>%s</tt></p> +<p>Report ID: <code>%s</code></p> -<p>Referer: <tt>%s</tt></p> +<p>Referer: <code>%s</code></p> <hr /> <div class="footer"> -- GitLab