[pLog-svn] r650 - plog/trunk
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Mon Jan 3 00:59:37 GMT 2005
Author: oscar
Date: 2005-01-03 00:59:37 +0000 (Mon, 03 Jan 2005)
New Revision: 650
Modified:
plog/trunk/xmlrpc.php
Log:
a random category is chosen if none is provided when posting the article
Modified: plog/trunk/xmlrpc.php
===================================================================
--- plog/trunk/xmlrpc.php 2005-01-03 00:57:26 UTC (rev 649)
+++ plog/trunk/xmlrpc.php 2005-01-03 00:59:37 UTC (rev 650)
@@ -193,7 +193,9 @@
}
}
else {
- // if no category, let's pick a random one
+ // if no category, let's pick a random one
+ $blogCategory = array_pop( $cats );
+ $categories[] = $blogCategory->getId();
}
$article = new Article(
More information about the pLog-svn
mailing list