bunch of bug fixes

This commit is contained in:
JT Smith 2005-03-04 04:53:15 +00:00
parent 9a57b0df47
commit 15fe4edfab
4 changed files with 26 additions and 5 deletions

View file

@ -1031,16 +1031,16 @@ sub www_viewRSS {
~;
my $sth = WebGUI::SQL->read("select *
from Thread
left join asset on Thread.assetId=asset.parentId
left join asset on Thread.assetId=asset.assetId
left join Post on Post.assetId=asset.assetId
where asset.parentId=".quote($self->getId)." and asset.state='published'
and asset.className='WebGUI::Asset::Post::Thread' and Post.status='approved'
order by ".$self->getValue("sortBy")." ".$self->getValue("sortOrder"));
my $i = 1;
while (my $data = $sth->hashref) {
my $post = WebGUI::Asset::Post::Thread->newByPropertyHashRef($data);
while (my $data = $sth->hashRef) {
my $post = WebGUI::Asset::Wobject::Collaboration->newByPropertyHashRef($data);
my $encUrl = _xml_encode($post->getUrl);
my $encUrl = _xml_encode(WebGUI::URL::getSiteURL().$post->getUrl);
my $encTitle = _xml_encode($post->get("title"));
my $encPubDate = _xml_encode(_get_rfc822_date($post->get("dateUpdated")));
my $encDescription = _xml_encode($self->get("synopsis"));

View file

@ -320,6 +320,23 @@ sub create {
$self->_makePath;
return $self;
}
#-------------------------------------------------------------------
=head2 createTemp ( )
Creates a temporary storage location on the file system.
=cut
sub createTemp {
my $class = shift;
my $id = WebGUI::Id::generate();
$id =~ m/^(.{2})/;
my $self = {_id => $id, _part1 => 'temp', _part2 => $1};
bless $self, ref($class)||$class;
$self->_makePath;
return $self;
}
#-------------------------------------------------------------------