[pLog-svn] r4686 - plog/branches/lifetype-1.2/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sat Feb 3 08:55:33 EST 2007
Author: oscar
Date: 2007-02-03 08:55:33 -0500 (Sat, 03 Feb 2007)
New Revision: 4686
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminsavedraftarticleajaxaction.class.php
Log:
fixed a couple of warning messages that could cause the "save draft" functionality not to work depending on your php error reporting settings.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminsavedraftarticleajaxaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminsavedraftarticleajaxaction.class.php 2007-02-03 13:00:46 UTC (rev 4685)
+++ plog/branches/lifetype-1.2/class/action/admin/adminsavedraftarticleajaxaction.class.php 2007-02-03 13:55:33 UTC (rev 4686)
@@ -11,6 +11,9 @@
*/
class AdminSaveDraftArticleAjaxAction extends AdminAction
{
+
+ var $_postText;
+ var $_postTopic;
function AdminSaveDraftArticleAjaxAction( $actionInfo, $request )
{
@@ -20,12 +23,10 @@
function validate()
{
$this->_postText = $this->_request->getValue( "postText" );
- $this->_postExtendedText = $this->_request->getValue( "postExtendedText" );
$this->_postTopic = $this->_request->getValue( "postTopic" );
// if there is no text, extended text or topic there is no point in saving anything
- if( $this->_postText == "" && $this->_postExtendedTExt == "" &&
- $this->_postTopic == "" ) {
+ if( $this->_postText == "" && $this->_postTopic == "" ) {
// nothing to do yet, so let's quit
$this->_view = new AdminXmlView( $this->_blogInfo, "response" );
$this->_view->setValue( "method", "saveDraftArticleAjax" );
@@ -84,7 +85,7 @@
{
$status = POST_STATUS_DRAFT;
$articles = new Articles();
- $postText = Textfilter::xhtmlize($this->_postText).POST_EXTENDED_TEXT_MODIFIER.Textfilter::xhtmlize($this->_postExtendedText);
+ $postText = Textfilter::xhtmlize($this->_postText);
$article = new Article( $this->_postTopic, $postText, $this->_postCategories, $this->_userInfo->getId(),
$this->_blogInfo->getId(), $status, 0, Array(), $this->_postSlug );
@@ -98,7 +99,7 @@
foreach( $this->_customFields as $fieldId => $fieldValue ) {
// 3 of those parameters are not really need when creating a new object... it's enough that
// we know the field definition id.
- $customField = new CustomFieldValue( $fieldId, $fieldValue, "", -1, "", $artId, $this->_blogInfo->getId(), -1);
+ $customField = new CustomFieldValue( $fieldId, $fieldValue, "", -1, "", -1, $this->_blogInfo->getId(), -1);
array_push( $fields, $customField );
}
$article->setFields( $fields );
More information about the pLog-svn
mailing list