- 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
This commit is contained in:
Rytis Slatkevičius 2010-05-11 19:25:13 +00:00
parent 29efaefc5d
commit a002ba4845
2 changed files with 19 additions and 3 deletions

View File

@ -3455,3 +3455,13 @@ Rom 10 May 2010
client/
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

View File

@ -26,10 +26,10 @@ function news_item($date, $title, $post) {
$d = time_str($date);
if (is_string($post)) {
$forum_link = false;
$text = bb2html($post);
$text = output_transform($post);
} else {
$forum_link = true;
$text = bb2html($post->content);
$text = output_transform($post->content);
}
echo "
<span class=news_content>$text</span>
@ -63,7 +63,13 @@ function show_news($start, $count) {
";
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 = "";
if ($start) {
if ($count) {