[geeklog-cvs] geeklog: Minor code cleanup - no change in functionality
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Aug 6 10:19:10 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/7b33f42b2d98
changeset: 7224:7b33f42b2d98
user: Dirk Haun <dirk at haun-online.de>
date: Thu Aug 06 11:23:58 2009 +0200
description:
Minor code cleanup - no change in functionality
diffstat:
public_html/calendar/event.php | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 7c3215e7d3b0 -r 7b33f42b2d98 public_html/calendar/event.php
--- a/public_html/calendar/event.php Wed Aug 05 15:16:07 2009 +0200
+++ b/public_html/calendar/event.php Thu Aug 06 11:23:58 2009 +0200
@@ -538,22 +538,24 @@
$A = DB_fetchArray($result);
if (SEC_hasAccess($A['owner_id'],$A['group_id'],$A['perm_owner'],
$A['perm_group'],$A['perm_members'],$A['perm_anon']) > 0) {
+ $cal_templates->set_var('site_url', $_CONF['site_url']);
+ $cal_templates->set_var('site_admin_url', $_CONF['site_admin_url']);
+ $cal_templates->set_var('layout_url', $_CONF['layout_url']);
+
if (strftime('%B',strtotime($A['datestart'])) != $currentmonth) {
$str_month = $cal->getMonthName(strftime('%m',strtotime($A['datestart'])));
$cal_templates->set_var('lang_month', $str_month);
$cal_templates->set_var('event_year', strftime('%Y',strtotime($A['datestart'])));
$currentmonth = strftime('%B',strtotime($A['datestart']));
}
- $cal_templates->set_var('event_title', stripslashes($A['title']));
- $cal_templates->set_var('site_url', $_CONF['site_url']);
- $cal_templates->set_var('site_admin_url', $_CONF['site_admin_url']);
- $cal_templates->set_var('layout_url', $_CONF['layout_url']);
+
$event_title = stripslashes($A['title']);
if (!empty($A['url'])) {
$event_title = COM_createLink($event_title, $A['url']);
$cal_templates->set_var('event_url', $A['url']);
}
$cal_templates->set_var('event_title', $event_title);
+
if (($_CA_CONF['personalcalendars'] == 1)
&& !COM_isAnonUser()) {
$tmpresult = DB_query("SELECT * FROM {$_TABLES['personal_events']} WHERE eid='{$A['eid']}' AND uid={$_USER['uid']}");
More information about the geeklog-cvs
mailing list