[geeklog-cvs] geeklog: No need to index the "reply to this" links - added a re...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Dec 1 14:27:28 EST 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/86ce6afc56ba
changeset: 6489:86ce6afc56ba
user: Dirk Haun <dirk at haun-online.de>
date: Mon Dec 01 11:20:01 2008 +0100
description:
No need to index the "reply to this" links - added a rel="nofollow"
diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
system/lib-comment.php | 13 +++++++------
diffs (27 lines):
diff -r 8dfc96e19331 -r 86ce6afc56ba system/lib-comment.php
--- a/system/lib-comment.php Sun Nov 30 13:04:17 2008 +0100
+++ b/system/lib-comment.php Mon Dec 01 11:20:01 2008 +0100
@@ -427,16 +427,17 @@
// create a reply to link
$reply_link = '';
- if( $ccode == 0 ) {
+ if ($ccode == 0) {
$reply_link = $_CONF['site_url'] . '/comment.php?sid=' . $A['sid']
. '&pid=' . $A['cid'] . '&title='
- . urlencode( $A['title'] ) . '&type=' . $A['type'];
- $reply_option = COM_createLink($LANG01[43], $reply_link ) . ' | ';
- $template->set_var( 'reply_option', $reply_option );
+ . urlencode($A['title']) . '&type=' . $A['type'];
+ $reply_option = COM_createLink($LANG01[43], $reply_link,
+ array('rel' => 'nofollow')) . ' | ';
+ $template->set_var('reply_option', $reply_option);
} else {
- $template->set_var( 'reply_option', '' );
+ $template->set_var('reply_option', '');
}
- $template->set_var( 'reply_link', $reply_link );
+ $template->set_var('reply_link', $reply_link);
// format title for display, must happen after reply_link is created
$A['title'] = htmlspecialchars( $A['title'] );
More information about the geeklog-cvs
mailing list