[pLog-svn] r1219 - plog/trunk/class/action
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sat Feb 26 22:14:57 GMT 2005
Author: oscar
Date: 2005-02-26 22:14:56 +0000 (Sat, 26 Feb 2005)
New Revision: 1219
Modified:
plog/trunk/class/action/viewarticleaction.class.php
Log:
solved issue 273, by adding the blog id to the call to the method ArticleCategories::getArticleCategoryByName() (http://bugs.plogworld.net/view.php?id=273)
Modified: plog/trunk/class/action/viewarticleaction.class.php
===================================================================
--- plog/trunk/class/action/viewarticleaction.class.php 2005-02-26 22:04:37 UTC (rev 1218)
+++ plog/trunk/class/action/viewarticleaction.class.php 2005-02-26 22:14:56 UTC (rev 1219)
@@ -126,10 +126,10 @@
// ...and categories...
if( $this->_categoryName ) {
$categories = new ArticleCategories();
- $category = $categories->getCategoryByName( $this->_categoryName );
+ $category = $categories->getCategoryByName( $this->_categoryName, $this->_blogInfo->getId());
if( !$category ) {
$this->_setErrorView();
- return false;
+ return false;
}
// if there was a user, use his/her id
$this->_categoryId = $category->getId();
More information about the pLog-svn
mailing list