[geeklog-cvs] geeklog: Minor code cleanup
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jan 30 14:03:49 EST 2010
changeset 7684:f959870cb435
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/f959870cb435
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 30 18:41:22 2010 +0100
description:
Minor code cleanup
diffstat:
public_html/index.php | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r 7ad740bb8136 -r f959870cb435 public_html/index.php
--- a/public_html/index.php Sat Jan 30 18:40:29 2010 +0100
+++ b/public_html/index.php Sat Jan 30 18:41:22 2010 +0100
@@ -133,26 +133,25 @@
}
}
-if($topic)
+if ($topic)
{
$header = '<link rel="microsummary" href="' . $_CONF['site_url']
. '/index.php?display=microsummary&topic=' . urlencode($topic)
. '" title="Microsummary"' . XHTML . '>';
// Meta Tags
- If ($_CONF['meta_tags'] > 0) {
+ if ($_CONF['meta_tags'] > 0) {
$result = DB_query ("SELECT meta_description, meta_keywords FROM {$_TABLES['topics']} WHERE tid = '{$topic}'");
$A = DB_fetchArray ($result);
$meta_description = stripslashes($A['meta_description']);
$meta_keywords = stripslashes($A['meta_keywords']);
- //$meta_description = stripslashes( DB_getItem( $_TABLES['topics'], 'meta_description', "tid = '$topic'" ));
- //$meta_keywords = stripslashes( DB_getItem( $_TABLES['topics'], 'meta_keywords', "tid = '$topic'" ));
- $header .= COM_createMetaTags($meta_description, $meta_keywords);
+ $header .= COM_createMetaTags($meta_description, $meta_keywords);
}
} else {
$header = '<link rel="microsummary" href="' . $_CONF['site_url']
- . '/index.php?display=microsummary" title="Microsummary"' . XHTML . '>';
+ . '/index.php?display=microsummary" title="Microsummary"' . XHTML
+ . '>';
}
$display .= COM_siteHeader('menu', '', $header);
if (isset ($_GET['msg'])) {
More information about the geeklog-cvs
mailing list