重装后显示成功。但是做了一个顶部菜单指向HTMICROBLOG组件,保存后在前台点击该菜单按钮,却显示如下出错信息,望各位变成高手指教,并帮助解决问题:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/local/psa/home/vhosts/ky80.com/httpdocs/components/com_htmicroblog/lib/FeedWriter.php on line 21
下面我把feedwriter.php的相关内容附在下面:
<?php
这是第一行
// RSS 0.90 Officially obsoleted by 1.0
// RSS 0.91, 0.92, 0.93 and 0.94 Officially obsoleted by 2.0
// So, define constants for RSS 1.0, RSS 2.0 and ATOM
define('RSS1', 'RSS 1.0', true);
define('RSS2', 'RSS 2.0', true);
define('ATOM', 'ATOM', true);
/**
* Univarsel Feed Writer class
*
* Genarate RSS 1.0, RSS2.0 and ATOM Feed
*
* @package UnivarselFeedWriter
* @author Anis uddin Ahmad <
这个 E-mail 受反垃圾邮件程序保护,您需要启用 JavaScript 才能查看。>
* @link
www.ajaxray.com/projects/rss
*/
class FeedWriter
{
private $channels = array();// Collection of channel elements
这是第21行
private $items = array();// Collection of items as object of FeedItem class.
private $data = array();// Store some other version wise data
private $CDATAEncoding = array();// The tag names which have to encoded as CDATA
private $version = null;
/**
* Constructor
*
* @param constant the version constant (RSS1/RSS2/ATOM).
*/
function __construct($version = RSS2)
{
$this->version = $version;
// Setting default value for assential channel elements
$this->channels = $version . ' Feed';
$this->channels = '
www.ajaxray.com/blog';
//Tag names to encode in CDATA
$this->CDATAEncoding = array('description', 'content:encoded', 'summary');
完整的Feedwriter.php文件见附件。