Skip to content

Commit

Permalink
Removed rel="prev" and rel="next" properties (Improvement #933)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Aug 15, 2019
1 parent a5b2754 commit 5a66ad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions plugins/staticpages/functions.inc
Expand Up @@ -10,7 +10,7 @@
// | API method and 2) implements all the common code needed by the Static |
// | Pages' PHP files. |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2000-2017 by the following authors: |
// | Copyright (C) 2000-2019 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Tom Willett - twillett AT users DOT sourceforge DOT net |
Expand Down Expand Up @@ -375,15 +375,15 @@ function SP_displayPage($page, $A, $comment_order = 'ASC', $comment_mode = 'nest
$sp_prev = stripslashes($A['sp_prev']);
if ($sp_prev !== '') {
$headerCode .= PHP_EOL . sprintf(
'<link rel="prev" href="%s"%s>',
'<link href="%s"%s>',
COM_buildURL($_CONF['site_url'] . '/staticpages/index.php?page=' . $sp_prev),
XHTML
);
}
$sp_next = stripslashes($A['sp_next']);
if ($sp_next !== '') {
$headerCode .= PHP_EOL . sprintf(
'<link rel="next" href="%s"%s>',
'<link href="%s"%s>',
COM_buildURL($_CONF['site_url'] . '/staticpages/index.php?page=' . $sp_next),
XHTML
);
Expand Down
6 changes: 1 addition & 5 deletions public_html/lib-common.php
Expand Up @@ -8,7 +8,7 @@
// | |
// | Geeklog common library. |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2000-2018 by the following authors: |
// | Copyright (C) 2000-2019 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
Expand Down Expand Up @@ -5103,8 +5103,6 @@ function COM_printPageNavigation($base_url, $currentPage, $num_pages,
$page_navigation->set_var('end_first_anchortag', '</a>');
$page_navigation->set_var('start_previous_anchortag', '<a href="' . $first_url . $pg . $last_url . '">');
$page_navigation->set_var('end_previous_anchortag', '</a>');
// Add in Pagination for previous page
$relLinks['prev'] = '<link rel="prev" href="' . $first_url . $pg . $last_url . '"' . XHTML . '>';
} else {
$page_navigation->set_var('start_first_anchortag', '');
$page_navigation->set_var('end_first_anchortag', '');
Expand Down Expand Up @@ -5165,8 +5163,6 @@ function COM_printPageNavigation($base_url, $currentPage, $num_pages,
$page_navigation->set_var('end_next_anchortag', '</a>');
$page_navigation->set_var('start_last_anchortag', '<a href="' . $first_url . $sep . $page_str . $num_pages . $last_url . '">');
$page_navigation->set_var('end_last_anchortag', '</a>');
// Add in Pagination for previous page
$relLinks['next'] = '<link rel="next" href="' . $first_url . $sep . $page_str . ($currentPage + 1) . $last_url . '"' . XHTML . '>';
}
$page_navigation->parse('pages', 'nav-end', true);
}
Expand Down

0 comments on commit 5a66ad3

Please sign in to comment.