[geeklog-cvs] geeklog: Use COM_isAnonUser

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Jun 1 10:19:18 EDT 2009


details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/7f638764a464
changeset: 7075:7f638764a464
user: Dirk Haun <dirk at haun-online.de>
date: Mon Jun 01 12:30:40 2009 +0200
description:
Use COM_isAnonUser

diffstat:

plugins/links/functions.inc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r 81e09141a48d -r 7f638764a464 plugins/links/functions.inc
--- a/plugins/links/functions.inc Sun May 31 11:02:58 2009 +0200
+++ b/plugins/links/functions.inc Mon Jun 01 12:30:40 2009 +0200
@@ -84,10 +84,9 @@
*/
function plugin_getmenuitems_links()
{
- global $_CONF, $_USER, $_LI_CONF, $LANG_LINKS;
+ global $_CONF, $_LI_CONF, $LANG_LINKS;

- $anon = (empty ($_USER['uid']) || ($_USER['uid'] <= 1)) ? true : false;
- if (($_LI_CONF['hidelinksmenu'] == 1) || ($anon &&
+ if (($_LI_CONF['hidelinksmenu'] == 1) || (COM_isAnonUser() &&
($_CONF['loginrequired'] || $_LI_CONF['linksloginrequired']))) {
return false;
}



More information about the geeklog-cvs mailing list