[dev] [cvs] commit: incubator/thomas admin.php bloggers.php cloud.php delete.php edit.php external.php next.php read.php search.php trackback.php user.php incubator/thomas/lib TagCloud.php Thomas.php View.php api.php base.php metaWeblog.php ...

Michael Rubinsky mike at theupstairsroom.com
Wed Jun 6 18:10:43 UTC 2007


Quoting Duck <duck at obala.net>:

> duck        2007-06-03 10:50:12 EDT
>
>   Modified files:
>     thomas               admin.php bloggers.php cloud.php
>                          delete.php edit.php external.php next.php
>                          read.php search.php trackback.php
>                          user.php
>     thomas/lib           TagCloud.php Thomas.php View.php api.php
>                          base.php metaWeblog.php
>     thomas/lib/Block     blogs.php categories.php category.php
>                          last_bloggers.php last_comments.php
>                          tags_cloud.php
>     thomas/po            thomas.pot
>     thomas/templates/block blog.php
>     thomas/templates/list blog.php bloggers.php search.php
>     thomas/templates/user admin.inc header.inc read.inc
>   Log:
>   Fix the blogers stats calculation in the bloggers view.
>   Show the ratings in blog list and blog view.
>   Move the dateFormat function to Thomas_View, since is a view  
> dedicated function.
>   Replace the deprecated is_a() with interaceof.
>
>   Michael: I reverted the getLastComments change since completely  
> foods my installation - I get the max execution time fatal error. If  
> the actual forums/getThreads call dose not work for you please point  
> me to find out why.

What happens is that this block displays comments from *all* forums on  
my installation...ansel, jonah, etc...

The reason is that in the forums/getThreads call you are passing a '0'  
as the first parameter ($thread_root) which when you follow the code  
to Agora_Messages::getThreads the control structure on line 908  
doesn't set any parameters for message_id or message_thread.   
Additionaly, even if the if condition was changed to  
isset($thread_root) we would still get back a result set of all  
messages that have a 0 value for message_thread...regardless of the  
value of fourm_id.

The issue is that Agora_Messages::_getThreads doesn't know anything  
about scope...it only looks at the agora_messages table.  I'll take a  
look at if this is easily fixable in agora without breaking other  
things...I'll try to get a look at it when I have time later on this  
afternoon possibly.

I'm pretty sure this worked correctly at some point, just not sure  
when it broke.

Plus, I thought that by making use of the 'batch' method it would save  
on overhead by not having to call an api method for each separate forum.

Ah well ;)

-- 
Thanks,
Mike

"Am I getting old, or has the supermarket been playing great music lately?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 2013 bytes
Desc: PGP Public Key
Url : http://lists.horde.org/archives/dev/attachments/20070606/f3c39e22/attachment.bin 


More information about the dev mailing list