[pLog-svn] r3074 - in plog/trunk/class: action/admin dao view/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Mar 16 17:38:48 GMT 2006
Author: oscar
Date: 2006-03-16 17:38:48 +0000 (Thu, 16 Mar 2006)
New Revision: 3074
Modified:
plog/trunk/class/action/admin/adminaddblogcategoryaction.class.php
plog/trunk/class/dao/blogcategory.class.php
plog/trunk/class/view/admin/adminblogcategorieslistview.class.php
Log:
fixed several notices
Modified: plog/trunk/class/action/admin/adminaddblogcategoryaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddblogcategoryaction.class.php 2006-03-16 17:30:01 UTC (rev 3073)
+++ plog/trunk/class/action/admin/adminaddblogcategoryaction.class.php 2006-03-16 17:38:48 UTC (rev 3074)
@@ -48,7 +48,7 @@
$category = new BlogCategory( $this->_categoryName, $this->_categoryDescription );
// fire the pre event...
- $this->notifyEvent( EVENT_PRE_BLOG_CATEGORY_ADD, Array( "category" => &$category ));
+ $this->notifyEvent( EVENT_PRE_ADD_BLOG_CATEGORY, Array( "category" => &$category ));
// once we have built the object, we can add it to the database!
if( $categories->addBlogCategory( $category )) {
@@ -57,7 +57,7 @@
$this->_view->setSuccessMessage( $this->_locale->pr("blog_category_added_ok", $category->getName()));
// fire the post event
- $this->notifyEvent( EVENT_POST_BLOG_CATEGORY_ADD, Array( "category" => &$category ));
+ $this->notifyEvent( EVENT_POST_ADD_BLOG_CATEGORY, Array( "category" => &$category ));
// clear the cache if everything went fine
CacheControl::resetBlogCache( $this->_blogInfo->getId(), false );
Modified: plog/trunk/class/dao/blogcategory.class.php
===================================================================
--- plog/trunk/class/dao/blogcategory.class.php 2006-03-16 17:30:01 UTC (rev 3073)
+++ plog/trunk/class/dao/blogcategory.class.php 2006-03-16 17:38:48 UTC (rev 3074)
@@ -15,6 +15,8 @@
var $_name;
var $_description;
var $_properties;
+ var $_numBlogs;
+ var $_numActiveBlogs;
function BlogCategory( $name, $description = "", $properties = Array(), $id = -1 )
{
Modified: plog/trunk/class/view/admin/adminblogcategorieslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminblogcategorieslistview.class.php 2006-03-16 17:30:01 UTC (rev 3073)
+++ plog/trunk/class/view/admin/adminblogcategorieslistview.class.php 2006-03-16 17:38:48 UTC (rev 3074)
@@ -22,7 +22,10 @@
{
$this->AdminTemplatedView( $blogInfo, "blogcategories" );
- $this->_searchTerms = $params['searchTerms'];
+ if( isset( $params['searchTerms'] ))
+ $this->_searchTerms = $params['searchTerms'];
+ else
+ $this->_searchTerms = "";
}
/**
More information about the pLog-svn
mailing list