[pLog-svn] r3581 - plog/trunk/class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Jun 14 18:20:42 GMT 2006
Author: oscar
Date: 2006-06-14 18:20:41 +0000 (Wed, 14 Jun 2006)
New Revision: 3581
Modified:
plog/trunk/class/dao/articles.class.php
Log:
fixed issue 955 (blog id being ignored in Articles::getBlogArticleByTitle)
Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php 2006-06-14 17:51:00 UTC (rev 3580)
+++ plog/trunk/class/dao/articles.class.php 2006-06-14 18:20:41 UTC (rev 3581)
@@ -78,7 +78,7 @@
* @return Returns an Article object or 'false' otherwise.
*/
function getBlogArticleByTitle( $articleTitle,
- $blogId = -1,
+ $blogId,
$includeHiddenFields = true,
$date = -1,
$categoryId = -1,
@@ -93,8 +93,8 @@
Array( CACHE_ARTICLES => "getId" ));
$found = false;
if($articles){
- foreach( $articles as $article ) {
- if( $this->check( $article, $date, $categoryId,
+ foreach( $articles as $article ) {
+ if( $article->getBlogId() == $blogId && $this->check( $article, $date, $categoryId,
$status, $userId, $maxDate )) {
$found = true;
break;
More information about the pLog-svn
mailing list