Skip to content
Snippets Groups Projects
Commit a002ba48 authored by Rytis Slatkevičius's avatar Rytis Slatkevičius
Browse files

- user web: use full output transform for frontpage news posts (to handle...

- user web: use full output transform for frontpage news posts (to handle newlines and other related stuff).
- user web: add a warning in case admin hasn't changed show_news() call to the new format.

svn path=/trunk/boinc/; revision=21459
parent 29efaefc
No related branches found
No related tags found
No related merge requests found
...@@ -3455,3 +3455,13 @@ Rom 10 May 2010 ...@@ -3455,3 +3455,13 @@ Rom 10 May 2010
client/ client/
main.cpp main.cpp
Rytis 11 May 2010
- user web: use full output transform for frontpage news posts (to handle
newlines and other related stuff).
- user web: add a warning in case admin hasn't changed show_news() call to
the new format.
html/inc/
news.inc
...@@ -26,10 +26,10 @@ function news_item($date, $title, $post) { ...@@ -26,10 +26,10 @@ function news_item($date, $title, $post) {
$d = time_str($date); $d = time_str($date);
if (is_string($post)) { if (is_string($post)) {
$forum_link = false; $forum_link = false;
$text = bb2html($post); $text = output_transform($post);
} else { } else {
$forum_link = true; $forum_link = true;
$text = bb2html($post->content); $text = output_transform($post->content);
} }
echo " echo "
<span class=news_content>$text</span> <span class=news_content>$text</span>
...@@ -64,6 +64,12 @@ function show_news($start, $count) { ...@@ -64,6 +64,12 @@ function show_news($start, $count) {
return; return;
} }
if (is_array($start)) {
echo "You have not changed show_news() to use 0 instead of
deprecated \$project_news as the first param.";
return;
}
$lim = ""; $lim = "";
if ($start) { if ($start) {
if ($count) { if ($count) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment