[geeklog-cvs] geeklog: Don't need a profile link for anonymous users

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Dec 13 10:43:19 EST 2009


changeset 7527:3a481e106005
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/3a481e106005
user: Dirk Haun <dirk at haun-online.de>
date: Sun Dec 13 09:42:10 2009 +0100
description:
Don't need a profile link for anonymous users

diffstat:

 public_html/admin/plugins/staticpages/index.php |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 1ced05486040 -r 3a481e106005 public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php	Sun Dec 13 09:29:38 2009 +0100
+++ b/public_html/admin/plugins/staticpages/index.php	Sun Dec 13 09:42:10 2009 +0100
@@ -144,15 +144,15 @@
     $owner_name = COM_getDisplayName($A['owner_id']);
     $owner_username = DB_getItem($_TABLES['users'], 'username',
                                  "uid = {$A['owner_id']}");
-    $profile_link = $_CONF['site_url']
-                  . '/users.php?mode=profile&uid=' . $A['owner_id'];
-
     $sp_template->set_var('owner_id', $A['owner_id']);
     $sp_template->set_var('owner', $owner_name);
     $sp_template->set_var('owner_name', $owner_name);
     $sp_template->set_var('owner_username', $owner_username);
 
     if ($A['owner_id'] > 1) {
+        $profile_link = $_CONF['site_url']
+                      . '/users.php?mode=profile&uid=' . $A['owner_id'];
+
         $sp_template->set_var('start_owner_anchortag',
                               '<a href="' . $profile_link . '">' );
         $sp_template->set_var('end_owner_anchortag', '</a>');



More information about the geeklog-cvs mailing list