[pLog-svn] r2430 - plog/branches/plog-1.0.2
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Aug 30 19:09:05 GMT 2005
Author: oscar
Date: 2005-08-30 19:09:04 +0000 (Tue, 30 Aug 2005)
New Revision: 2430
Modified:
plog/branches/plog-1.0.2/xmlrpc.php
Log:
- removed incompatible code with php5
- fixed a small issue where category links (using "plain" urls) would be double-escaped, once by the BaseRequestGenerator class and once again by the xmlrpc library.
Modified: plog/branches/plog-1.0.2/xmlrpc.php
===================================================================
--- plog/branches/plog-1.0.2/xmlrpc.php 2005-08-30 19:07:58 UTC (rev 2429)
+++ plog/branches/plog-1.0.2/xmlrpc.php 2005-08-30 19:09:04 UTC (rev 2430)
@@ -285,6 +285,9 @@
// we have to do this in long way
$blogInfo = $blogsG->getBlogInfo( $blogid );
$url = $blogInfo->getBlogRequestGenerator();
+ // disable the generation of xhtml content or else the IXR_XMLRPC library will
+ // escape things twice!
+ $url->setXHTML( false );
$dummy["htmlUrl"] = $url->categoryLink( $cat );
$dummy["rssUrl"] = "http://";
@@ -317,7 +320,8 @@
if ($erg != false)
{
$item = $articles->getUserArticle($postid, $erg->_id);
- $time = $item->getDateObject()->getTimestamp();
+ $dateObject = $item->getDateObject();
+ $time = $dateObject->getTimestamp();
$time = mktime(
substr($time,8,2),
substr($time,10,2),
@@ -357,7 +361,8 @@
if ($erg != false)
{
$item = $articles->getUserArticle($postid, $erg->_id);
- $time = $item->getDateObject()->getTimestamp();
+ $dateObject = $item->getDateObject();
+ $time = $dateObject->getTimestamp();
$time = mktime(
substr($time,8,2),
substr($time,10,2),
@@ -609,7 +614,8 @@
foreach($list as $item)
{
- $time = $item->getDateObject()->getTimestamp();
+ $dateObject = $item->getDateObject();
+ $time = $dateObject->getTimestamp();
$time = mktime(
substr($time,8,2),
substr($time,10,2),
@@ -662,7 +668,8 @@
foreach($list as $item)
{
- $time = $item->getDateObject()->getTimestamp();
+ $dateObject = $item->getDateObject();
+ $time = $dateObject->getTimestamp();
$time = mktime(
substr($time,8,2),
substr($time,10,2),
More information about the pLog-svn
mailing list