cvs: phpweb /include layout.inc
| From: | Rasmus Lerdorf | Date: | Sat, 18 Feb 2006 16:18:13 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-30628@lists.php.net to get a copy of this message | ||
rasmus Sat Feb 18 16:18:13 2006 UTC
Modified files:
/phpweb/include layout.inc
Log:
Remove some bogus code here
http://cvs.php.net/viewcvs.cgi/phpweb/include/layout.inc?r1=1.227&r2=1.228&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.227 phpweb/include/layout.inc:1.228
--- phpweb/include/layout.inc:1.227 Sat Jan 14 17:03:05 2006
+++ phpweb/include/layout.inc Sat Feb 18 16:18:13 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.227 2006/01/14 17:03:05 goba Exp $ */
+/* $Id: layout.inc,v 1.228 2006/02/18 16:18:13 rasmus Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -684,27 +684,15 @@
-3 => '3rd Last'
);
- if (!isset($event['start'])) { $event['start'] = ""; }
- if (!isset($event['end'])) { $event['end'] = ""; }
- if (!isset($event['sday'])) { $event['sday'] = ""; }
- if (!isset($event['smonth'])) { $event['smonth'] = ""; }
- if (!isset($event['syear'])) { $event['syear'] = ""; }
- if (!isset($event['eday'])) { $event['eday'] = ""; }
- if (!isset($event['emonth'])) { $event['emonth'] = ""; }
- if (!isset($event['eyear'])) { $event['eyear'] = ""; }
-
- // Start and end day of this event
- $sday = $event['start'] ? strtotime($event['start'])
- : mktime(0, 0, 1, $event['smonth'], $event['sday'],
$event['syear']);
- $eday = $event['end'] ? strtotime($event['end'])
- : mktime(0, 0, 1, $event['emonth'], $event['eday'],
$event['eyear']);
+ $sday = isset($event['start']) ? strtotime($event['start']) : 0;
+ $eday = isset($event['end']) ? strtotime($event['end']) : 0;
?>
<table border="0" cellspacing="0" cellpadding="3"
width="100%">
<tr bgcolor="#dddddd"><td>
<?php
// Print out date if needed
- if ($include_date && ($event['start'] || $event['smonth'])) {
+ if ($include_date && ($event['start'])) {
echo "<b>", date("F j, Y", $sday), "</b>\n";
}