[geeklog-cvs] geeklog: Fixed links not going through portal.php
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Apr 30 18:01:08 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/21ad9bcbad7b
changeset: 7000:21ad9bcbad7b
user: Sami Barakat
date: Thu Apr 30 23:00:12 2009 +0100
description:
Fixed links not going through portal.php
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
plugins/links/functions.inc | 2 +-
diffs (12 lines):
diff -r 0950dab49b89 -r 21ad9bcbad7b plugins/links/functions.inc
--- a/plugins/links/functions.inc Thu Apr 30 21:44:45 2009 +0100
+++ b/plugins/links/functions.inc Thu Apr 30 23:00:12 2009 +0100
@@ -363,7 +363,7 @@
// Make sure the query is SQL safe
$query = trim(addslashes($query));
- $sql = "SELECT lid AS id, title, description, UNIX_TIMESTAMP(date) AS date, owner_id AS uid, hits, url ";
+ $sql = "SELECT lid AS id, title, description, UNIX_TIMESTAMP(date) AS date, owner_id AS uid, hits, CONCAT('/links/portal.php?what=link&item=', lid) AS url ";
$sql .= "FROM {$_TABLES['links']} WHERE date <> 1 ";
$sql .= COM_getPermSQL('AND') . ' ';
More information about the geeklog-cvs
mailing list