[pLog-svn] r2147 - plog/trunk/class/dao

ork at devel.plogworld.net ork at devel.plogworld.net
Tue May 31 21:30:43 GMT 2005


Author: ork
Date: 2005-05-31 21:30:43 +0000 (Tue, 31 May 2005)
New Revision: 2147

Modified:
   plog/trunk/class/dao/blogs.class.php
Log:
missing include


Modified: plog/trunk/class/dao/blogs.class.php
===================================================================
--- plog/trunk/class/dao/blogs.class.php	2005-05-31 21:01:46 UTC (rev 2146)
+++ plog/trunk/class/dao/blogs.class.php	2005-05-31 21:30:43 UTC (rev 2147)
@@ -164,7 +164,7 @@
             $articles     = new Articles();
             $blogArticles = $articles->getArticles( $blogId );
 
-            $allArticles  = $blogArticles->getArticleByStatus( POST_STATUS_PUBLISHED );
+            $allArticles  = $blogArticles->getArticleIdsByStatus( POST_STATUS_PUBLISHED );
 
             return count($allArticles);
         }
@@ -412,6 +412,8 @@
           */
          function getAllBlogs( $status = BLOG_STATUS_ALL, $searchTerms = "", $page = -1, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE )
          {
+            require_once( PLOG_CLASS_PATH . 'class/database/db.class.php' );
+
             if( $status != BLOG_STATUS_ALL )
                 $whereStatus = "status = '".Db::qstr($status)."'";
             if( $searchTerms != "" )




More information about the pLog-svn mailing list