cvs: phpweb /include layout.inc
| From: | jim winstead | Date: | Wed, 06 Mar 2002 00:32:13 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8992@lists.php.net to get a copy of this message | ||
jimw Tue Mar 5 19:32:13 2002 EDT
Modified files:
/phpweb/include layout.inc
Log:
replace double-newline with paragraph break (but not just nl2br, which would be too funky), and
repeat url at end of entry like it did before.
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.78 phpweb/include/layout.inc:1.79
--- phpweb/include/layout.inc:1.78 Tue Mar 5 14:26:38 2002
+++ phpweb/include/layout.inc Tue Mar 5 19:32:11 2002
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.78 2002/03/05 19:26:38 jimw Exp $ */
+/* $Id: layout.inc,v 1.79 2002/03/06 00:32:11 jimw Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
@@ -427,7 +427,7 @@
}
?>
</td></tr>
- <tr bgcolor="#eeeeee"><td><?php echo
$event['ldesc']?></td></tr>
+ <tr bgcolor="#eeeeee"><td><?php echo
preg_replace("/\r?\n\r?\n/","<br /><br
/>",trim($event['ldesc'])); if ($event['url']) {?><br /><br
/><b>URL:</b> <?php echo '<a
href="',htmlentities($event['url']),'">',htmlentities($event['url']),'</a>';
}?></td></tr>
</table>
<?php
}