Fixing inconsistencies.

This commit is contained in:
JT Smith 2002-11-25 22:32:57 +00:00
parent 679a5bc92b
commit d9c2c3bcf7
3 changed files with 26 additions and 3 deletions

View file

@ -144,8 +144,8 @@ sub www_view {
my ($file, %var);
if ($_[0]->get("image") ne "") {
$file = WebGUI::Attachment->new($_[0]->get("image"),$_[0]->get("wobjectId"));
$var{image} = $file->getURL;
$var{thumbnail} = $file->getThumbnail;
$var{"image.url"} = $file->getURL;
$var{"image.thumbnail"} = $file->getThumbnail;
}
$var{description} = $_[0]->description;
if ($_[0]->get("convertCarriageReturns")) {
@ -156,13 +156,14 @@ sub www_view {
$var{"attachment.box"} = $file->box;
$var{"attachment.icon"} = $file->getIcon;
$var{"attachment.url"} = $file->getURL;
$var{"attachment.name"} = $file->getFilename;
}
($var{"replies.count"}) = WebGUI::SQL->quickArray("select count(*) from discussion where wobjectId=".$_[0]->get("wobjectId"));
$var{"replies.URL"} = WebGUI::URL::page('func=showMessage&wid='.$_[0]->get("wobjectId"));
$var{"replies.label"} = WebGUI::International::get(28,$namespace);
$var{"post.URL"} = WebGUI::URL::page('func=post&mid=new&wid='.$_[0]->get("wobjectId"));
$var{"post.label"} = WebGUI::International::get(24,$namespace);
return $_[0]->processMacros($_[0]->displayTitle.$_[0]->processTemplate($_[0]->get("templateId"),\%var));
return $_[0]->processMacros($_[0]->processTemplate($_[0]->get("templateId"),\%var));
}
1;