Parse error: syntax error, unexpected T_CLASS in /homepages/1/d160385903/htdocs/etri/libraries/joomla/html/html/behavior.php on line 17
在此脚本中:
<?php
/**
* @version $Id: behavior.php 18130 2010-07-14 11:21:35Z louis $
* @package Joomla.Framework
* @subpackage HTML
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('JPATH_BASE') or die();
/**
* JHTML helper class for loading JavaScript behaviors into the document head. This version is
* designed to load MooTools version 1.2 plus the 1.1 compatibility layer.
*
* @package Joomla.Framework
* @subpackage HTML
*
* @since 1.5.19
* @static
*/
class JHTMLBehavior
{
/**
* Method to load the mootools framework and compatibility layer into the document head. If the
* optional debug flag is set then a uncompressed version of the files will be loaded.
*
* @param boolean $debug True to enable debugging mode. If no value is set the value will
* be taken from the application configuration settings.
*
* @return void
*
* @since 1.5.19
* @static
*/
function mootools($debug = null)
{
// Check to see if it has already been loaded.
static $loaded;
if (!empty($loaded)) {
return;
}
// If no debugging value is set, use the setting from the application configuration.
if ($debug === null) {
$debug = JFactory::getConfig()->getValue('config.debug');
}
/*
* Note: Konqueror browser check.
* - If they fix thier issue with compressed javascript we can remove this.
*/
$kcheck = isset($_SERVER['HTTP_USER_AGENT']) ? strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'konqueror') : null;
// If the debugging flag is set or the browser is Konqueror use the uncompressed file.
if ($debug || $kcheck) {
JHTML::script('mootools-uncompressed.js', 'plugins/system/mtupgrade/', false);
}
else {
JHTML::script('mootools.js', 'plugins/system/mtupgrade/', false);
}
有什么建议吗? 谢谢!
-M
答案 0 :(得分:1)
php 4中没有方法链接。
可在PHP 5.x
中使用这就是为什么$debug = JFactory::getConfig()->getValue('config.debug');
在PHP 5.x中工作但在PHP 4.x中不起作用
This可能对您有帮助。
答案 1 :(得分:0)
关闭方法和类语句后,我没有收到PHP 5.3.3的任何解析错误。您使用的是哪个版本的PHP?什么版本的Joomla安装?