[pLog-svn] r5822 - plog/branches/lifetype-1.2/class/action/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Aug 13 16:18:53 EDT 2007


Author: oscar
Date: 2007-08-13 16:18:53 -0400 (Mon, 13 Aug 2007)
New Revision: 5822

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminnewpostaction.class.php
Log:
Fixed issue http://bugs.lifetype.net/view.php?id=1367 -- default_global_article_category_id not being followed


Modified: plog/branches/lifetype-1.2/class/action/admin/adminnewpostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminnewpostaction.class.php	2007-08-13 20:09:58 UTC (rev 5821)
+++ plog/branches/lifetype-1.2/class/action/admin/adminnewpostaction.class.php	2007-08-13 20:18:53 UTC (rev 5822)
@@ -46,8 +46,14 @@
         	// initialize the view
         	$this->_view = new AdminNewPostView( $this->_blogInfo );
             $this->_view->setValue( "sendNotification", $blogSettings->getValue( "default_send_notification" ));
+
+			// default global article category id
+			$config =& Config::getConfig();
+			$this->_view->setValue( "globalArticleCategoryId", $config->getValue( "default_global_article_category_id", 0 ));
+
             $this->setCommonData();
 
+
             // better to return true if everything fine
             return true;
         }



More information about the pLog-svn mailing list