summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-09 22:31:45 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-09 22:31:45 +0000
commitfa4399675fea981e83a94dddb87b86aba19b1393 (patch)
tree28f1b6b682388b6f20921a9ac82839c45fc12f19 /includes/functions/functions_print.php
parentfa9416136796d864bb7bc1cf8095cb53e1b82ed1 (diff)
downloadwebtrees-fa4399675fea981e83a94dddb87b86aba19b1393.tar.gz
webtrees-fa4399675fea981e83a94dddb87b86aba19b1393.tar.bz2
webtrees-fa4399675fea981e83a94dddb87b86aba19b1393.zip
Remove unused meta tags
Diffstat (limited to 'includes/functions/functions_print.php')
-rw-r--r--includes/functions/functions_print.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index fc7d1c28b3..690413d0fb 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -434,7 +434,7 @@ function print_header($title, $head="", $use_alternate_styles=true) {
global $QUERY_STRING, $action, $query, $theme_name;
global $FAVICON, $stylesheet, $print_stylesheet, $rtl_stylesheet, $headerfile, $toplinks, $THEME_DIR, $print_headerfile;
global $WT_IMAGES, $TEXT_DIRECTION, $ONLOADFUNCTION, $REQUIRE_AUTHENTICATION, $ENABLE_RSS, $RSS_FORMAT;
- global $META_AUTHOR, $META_PUBLISHER, $META_COPYRIGHT, $META_DESCRIPTION, $META_PAGE_TOPIC, $META_AUDIENCE, $META_PAGE_TYPE, $META_ROBOTS, $META_REVISIT, $META_KEYWORDS, $META_TITLE;
+ global $META_DESCRIPTION, $META_ROBOTS, $META_TITLE;
// TODO: Shouldn't this be in session.php?
// If not on allowed list, dump the spider onto the redirect page.
@@ -478,24 +478,10 @@ function print_header($title, $head="", $use_alternate_styles=true) {
$javascript = '';
$query_string = $QUERY_STRING;
if ($view!='preview' && $view!='simple') {
- $old_META_AUTHOR = $META_AUTHOR;
- $old_META_PUBLISHER = $META_PUBLISHER;
- $old_META_COPYRIGHT = $META_COPYRIGHT;
$old_META_DESCRIPTION = $META_DESCRIPTION;
- $old_META_PAGE_TOPIC = $META_PAGE_TOPIC;
- if (empty($META_AUTHOR) || empty($META_PUBLISHER) || empty($META_COPYRIGHT)) {
- $user_id=get_gedcom_setting(WT_GED_ID, 'CONTACT_USER_ID');
- $cuserName=getUserFullName($user_id);
- if (empty($META_AUTHOR )) $META_AUTHOR = $cuserName;
- if (empty($META_PUBLISHER)) $META_PUBLISHER = $cuserName;
- if (empty($META_COPYRIGHT)) $META_COPYRIGHT = $cuserName;
- }
if (empty($META_DESCRIPTION)) {
$META_DESCRIPTION = $GEDCOM_TITLE;
}
- if (empty($META_PAGE_TOPIC)) {
- $META_PAGE_TOPIC = $GEDCOM_TITLE;
- }
/* $javascript .='<script language="JavaScript" type="text/javascript">
<!--
@@ -594,11 +580,7 @@ function print_header($title, $head="", $use_alternate_styles=true) {
$bodyOnLoad .= "\"";
if ($view!='preview' && $view!='simple') {
require $headerfile;
- $META_AUTHOR = $old_META_AUTHOR;
- $META_PUBLISHER = $old_META_PUBLISHER;
- $META_COPYRIGHT = $old_META_COPYRIGHT;
$META_DESCRIPTION = $old_META_DESCRIPTION;
- $META_PAGE_TOPIC = $old_META_PAGE_TOPIC;
} else {
require $headerfile;
}