[pLog-svn] r1465 - plog/trunk/class/summary/dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sun Mar 13 17:14:18 GMT 2005
Author: oscar
Date: 2005-03-13 17:14:17 +0000 (Sun, 13 Mar 2005)
New Revision: 1465
Modified:
plog/trunk/class/summary/dao/summarystats.class.php
Log:
hopefully this should make it go a bit faster
Modified: plog/trunk/class/summary/dao/summarystats.class.php
===================================================================
--- plog/trunk/class/summary/dao/summarystats.class.php 2005-03-13 17:13:57 UTC (rev 1464)
+++ plog/trunk/class/summary/dao/summarystats.class.php 2005-03-13 17:14:17 UTC (rev 1465)
@@ -268,12 +268,12 @@
// in case we'd like to ignore certain posts based on a topic (like the registration message!)
if( $ignoreTopic != "" ) {
- $query .= " AND t.topic NOT LIKE '%".Db::qstr( $ignoreTopic )."%' ";
+ $query .= " AND t.topic NOT LIKE '".Db::qstr( $ignoreTopic )."' ";
}
// in case we'd like to ignore certain posts based on their contents (like the registration message!)
- if( $ignoreText != "" ) {
- $query .= " AND t.text NOT LIKE '%".Db::qstr( $ignoreText )."%' ";
- }
+ /*if( $ignoreText != "" ) {
+ $query .= " AND t.text NOT LIKE '".Db::qstr( $ignoreText )."' ";
+ }*/
$query .= " GROUP BY a.id HAVING COUNT(a.blog_id) = 1 ORDER BY a.date DESC LIMIT 0, $maxPosts";
$result = $this->_db->Execute( $query );
More information about the pLog-svn
mailing list