Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11504
Modified Files:
serendipity_functions.inc.php serendipity_xmlrpc.php NEWS
Log Message:
fixes from ilya for mt/blogger api
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- NEWS 8 Aug 2004 15:24:49 -0000 1.197
+++ NEWS 9 Aug 2004 19:57:34 -0000 1.198
@@ -3,14 +3,21 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Fixed some postgreSQL-issues, thanks to Ilya A. Volynets-Evenbakh!
+
+ * Improved and fixed XHTML-Cleanup Event plugin (garvinhicking)
+
+ * Fixed .htaccess update/creation errors for shared installation
+ (garvinhicking)
+
* RFE #832040 - Allow for easier handling of Calendar CSS classes
and remove hardcoded attributes for "today" (tomsommer)
- * Add detection for support of php_value directives in .htaccess
+ * Add detection for support of php_value directives in .htaccess
files (tomsommer)
- * Installation will report an error, if the needed db-extension for
- a specific database-type are not available within PHP
+ * Installation will report an error, if the needed db-extension for
+ a specific database-type are not available within PHP
(garvinhicking)
* Added bulgariang language, thanks to Bogomil Shopov
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.392
retrieving revision 1.393
diff -u -d -r1.392 -r1.393
--- serendipity_functions.inc.php 9 Aug 2004 15:25:24 -0000 1.392
+++ serendipity_functions.inc.php 9 Aug 2004 19:57:34 -0000 1.393
@@ -2561,6 +2561,12 @@
if (!$_SESSION['serendipityRightPublish']) {
$entry['isdraft'] = 'true';
}
+ if(!isset($entry['allow_comments'])){
+ $entry['allow_comments']='false';
+ }
+ if(!isset($entry['moderate_comments'])){
+ $entry['moderate_comments']='false';
+ }
$res = serendipity_db_insert('entries', $entry);
Index: serendipity_xmlrpc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_xmlrpc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- serendipity_xmlrpc.php 27 May 2004 13:11:35 -0000 1.15
+++ serendipity_xmlrpc.php 9 Aug 2004 19:57:34 -0000 1.16
@@ -193,6 +193,7 @@
}
function blogger_newPost($message) {
+ global $serendipity;
$val = $message->params[2];
$username = $val->getval();
$val = $message->params[3];
@@ -202,6 +203,8 @@
}
$val = $message->params[4];
$entry['body'] = $val->getval();
+ $entry['allow_comments'] = $serendipity['allowCommentsDefault'];
+ $entry['moderate_comments'] = $serendipity['moderateCommentsDefault'];
$id = serendipity_updertEntry($entry);
return new XML_RPC_Response( new XML_RPC_Value($id, 'string'));
}
@@ -241,6 +244,7 @@
}
function metaWeblog_newPost($message) {
+ global $serendipity;
$val = $message->params[1];
$username = $val->getval();
$val = $message->params[2];
@@ -256,6 +260,8 @@
$entry['body'] = $post_array['description'];
$entry['extended'] = $post_array['mt_text_more'];
$entry['isdraft'] = ($publish == 0)?'true':'false';
+ $entry['allow_comments'] = $serendipity['allowCommentsDefault'];
+ $entry['moderate_comments'] = $serendipity['moderateCommentsDefault'];
$id = serendipity_updertEntry($entry);
return new XML_RPC_Response( new XML_RPC_Value($id, 'string'));
}
|