projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bafde80
)
Support News as links
author
Joey Schulze
<joey@infodrom.org>
Sun, 30 Sep 2007 11:41:52 +0000
(11:41 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 30 Sep 2007 11:41:52 +0000
(11:41 +0000)
src/Infodrom/news/update.wml
patch
|
blob
|
history
diff --git
a/src/Infodrom/news/update.wml
b/src/Infodrom/news/update.wml
index
11001c3
..
5345886
100644
(file)
--- a/
src/Infodrom/news/update.wml
+++ b/
src/Infodrom/news/update.wml
@@
-59,15
+59,14
@@
<b><? echo $o_teaser; ?></b><p>
<?
+ if (ereg("^http://", $o_body)) {
+ printf ('<p><a href="%s">%s</a></p>', $o_body, $o_body);
+ } else {
echo ereg_replace ("<newline>", "
", ereg_replace ("<newline><newline>","<p>", ereg_replace ("
", "<newline>", $o_body)));
+ }
?>
</page>
-# Local variables:
-# mode: text
-# mode: auto-fill
-# mode: iso-accents
-# end: