summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions/functions_print.php')
-rw-r--r--includes/functions/functions_print.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index c902b5265e..444699ad75 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -227,16 +227,16 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") {
// now added as a function here.
function header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL) {
- $header_links='';
- if (!empty($LINK_CANONICAL)) {
- $header_links.= '<link rel="canonical" href="'. $LINK_CANONICAL. '">';
+ $header_links = '';
+ if ($LINK_CANONICAL) {
+ $header_links .= '<link rel="canonical" href="' . $LINK_CANONICAL . '">';
}
- if (!empty($META_DESCRIPTION)) {
- $header_links.= '<meta name="description" content="'. WT_Filter::escapeHtml($META_DESCRIPTION). '">';
+ if ($META_DESCRIPTION) {
+ $header_links .= '<meta name="description" content="' . $META_DESCRIPTION . '">';
}
- $header_links.= '<meta name="robots" content="'. $META_ROBOTS. '">';
- if (!empty($META_GENERATOR)) {
- $header_links.= '<meta name="generator" content="'. $META_GENERATOR. '">';
+ $header_links .= '<meta name="robots" content="' . $META_ROBOTS . '">';
+ if ($META_GENERATOR) {
+ $header_links .= '<meta name="generator" content="' . $META_GENERATOR . '">';
}
return $header_links;
}