aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-05 00:07:19 +0000
committerjwangen <jwangen>2002-10-05 00:07:19 +0000
commit7856c7ea0ed134c4dfee5c9ae2b4e7e2f9ab8b79 (patch)
tree47c4606d9fab5aedc732de796bf517b9d381f8d7 /month.php
parentce4d8be46ccefe642883253544a4ec81bdde8cc5 (diff)
downloadphpicalendar-7856c7ea0ed134c4dfee5c9ae2b4e7e2f9ab8b79.tar.gz
phpicalendar-7856c7ea0ed134c4dfee5c9ae2b4e7e2f9ab8b79.tar.bz2
phpicalendar-7856c7ea0ed134c4dfee5c9ae2b4e7e2f9ab8b79.zip
Minor changes, implemented use configable number of lines for line wrappings
Diffstat (limited to 'month.php')
-rw-r--r--month.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/month.php b/month.php
index c6ddf25..9a228fc 100644
--- a/month.php
+++ b/month.php
@@ -143,10 +143,7 @@
$event_end = date ($timeFormat, @strtotime ("$event_end"));
$calendar_name2 = addslashes($calendar_name);
$calendar_name2 = urlencode($calendar_name2);
- if (strlen($event_text) > 12) {
- $event_text = substr("$event_text", 0, 10);
- $event_text = $event_text . "...";
- }
+ $event_text = word_wrap($event_text, 12, $month_event_lines);
echo "<tr>\n";
echo "<td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";

© 2014-2024 Faster IT GmbH | imprint | privacy policy