[pLog-svn] r2969 - plog/branches/lifetype-1.0.4

mark at devel.lifetype.net mark at devel.lifetype.net
Sat Feb 18 03:45:33 GMT 2006


Author: mark
Date: 2006-02-18 03:45:32 +0000 (Sat, 18 Feb 2006)
New Revision: 2969

Modified:
   plog/branches/lifetype-1.0.4/xmlrpc.php
Log:
Change the deleteing post behavior accodring to dan's suggestion here: http://bugs.lifetype.net/view.php?id=837

Then the xml-rpc has the same behavior with the admin panel.

Modified: plog/branches/lifetype-1.0.4/xmlrpc.php
===================================================================
--- plog/branches/lifetype-1.0.4/xmlrpc.php	2006-02-17 17:30:01 UTC (rev 2968)
+++ plog/branches/lifetype-1.0.4/xmlrpc.php	2006-02-18 03:45:32 UTC (rev 2969)
@@ -182,7 +182,7 @@
             {
                 foreach( $catList as $categoryName ) {
                     foreach( $cats as $blogCategory ) {
-                        $categoryName = trim($categoryName);                    
+                        $categoryName = trim($categoryName);
                         if ( strcmp( $categoryName, $blogCategory->getName()) == 0 )
                         {
                             $categories[] = $blogCategory->getId();
@@ -504,6 +504,7 @@
             {
                 foreach( $catList as $categoryName ) {
                     foreach( $cats as $blogCategory ) {
+                        $categoryName = trim($categoryName);
                         if ( strcmp( $categoryName, $blogCategory->getName()) == 0 )
                         {
                             $categories[] = $blogCategory->getId();
@@ -572,8 +573,7 @@
             $articles->deleteArticle(
                 $postid,
                 $erg->_id, // userid
-                $article->getBlog(),
-                $forever = true // kick 4eva
+                $article->getBlog()
             );
             
             // Send the EVENT_POST_POST_DELETE messages to the plugins



More information about the pLog-svn mailing list