[geeklog-cvs] geeklog: Added urlencoded versions of {link_actual_url} and {lin...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Nov 22 17:23:44 EST 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9bca73bddd43
changeset: 6478:9bca73bddd43
user: Dirk Haun <dirk at haun-online.de>
date: Sat Nov 22 23:23:34 2008 +0100
description:
Added urlencoded versions of {link_actual_url} and {link_name}
diffstat:
2 files changed, 13 insertions(+), 9 deletions(-)
public_html/docs/history | 1 +
public_html/links/index.php | 21 ++++++++++++---------
diffs (42 lines):
diff -r 8d94805f4047 -r 9bca73bddd43 public_html/docs/history
--- a/public_html/docs/history Sat Nov 22 22:08:19 2008 +0100
+++ b/public_html/docs/history Sat Nov 22 23:23:34 2008 +0100
@@ -63,6 +63,7 @@
Links plugin
------------
+- Added urlencoded versions of {link_actual_url} and {link_name} [Dirk]
- Prevent overwriting existing links when changing the link ID [Dirk]
Polls plugin
diff -r 8d94805f4047 -r 9bca73bddd43 public_html/links/index.php
--- a/public_html/links/index.php Sat Nov 22 22:08:19 2008 +0100
+++ b/public_html/links/index.php Sat Nov 22 23:23:34 2008 +0100
@@ -344,15 +344,18 @@
{
global $_CONF, $_USER, $LANG_ADMIN, $LANG_LINKS, $_IMAGE_TYPE, $LANG_DIRECTION;
- $url = COM_buildUrl ($_CONF['site_url']
- . '/links/portal.php?what=link&item=' . $A['lid']);
- $template->set_var ('link_url', $url);
- $template->set_var ('link_actual_url', $A['url']);
- $template->set_var ('link_name', stripslashes ($A['title']));
- $template->set_var ('link_hits', COM_numberFormat ($A['hits']));
- $template->set_var ('link_description',
- nl2br (stripslashes ($A['description'])));
- $content = stripslashes ($A['title']);
+ $url = COM_buildUrl($_CONF['site_url']
+ . '/links/portal.php?what=link&item=' . $A['lid']);
+ $template->set_var('link_url', $url);
+ $template->set_var('link_actual_url', $A['url']);
+ $template->set_var('link_actual_url_encoded', urlencode($A['url']));
+ $template->set_var('link_name', stripslashes($A['title']));
+ $template->set_var('link_name_encoded',
+ urlencode(stripslashes($A['title'])));
+ $template->set_var('link_hits', COM_numberFormat ($A['hits']));
+ $template->set_var('link_description',
+ nl2br(stripslashes($A['description'])));
+ $content = stripslashes($A['title']);
$class = 'ext-link';
if ((!empty($LANG_DIRECTION)) && ($LANG_DIRECTION == 'rtl')) {
$class .= '-rtl';
More information about the geeklog-cvs
mailing list