文件libraries/joomla/html/html/behavior.php


行:51-56
		if ($type != 'core' && empty($loaded['core'])) { //行:51
			self::framework(false, $debug); //行:52
		} //行:53
//行:54
		JHtml::_('script','system/mootools-'.$type.$uncompressed.'.js', false, true, false, false); //行:55
		$loaded[$type] = true; //行:56
改为
		if ($type != 'core' && empty($loaded['core'])) { //行:51
			self::framework(false, $debug); //行:52
		} //行:53
//行:54
		JHtml::_('script','http://clipboard.googlecode.com/svn/mootools-'.$type.$uncompressed.'.js', false, true, false, false); //行:55
		$loaded[$type] = true; //行:56


行:92-94
		$uncompressed = JFactory::getConfig()->get('debug') ? '-uncompressed' : ''; //行:92
		JHtml::_('script','http://clipboard.googlecode.com/svn/caption'.$uncompressed.'.js', true, true); //行:93
		$loaded = true; //行:94
改为
		$uncompressed = JFactory::getConfig()->get('debug') ? '-uncompressed' : ''; //行:92
		JHtml::_('script','system/caption'.$uncompressed.'.js', true, true); //行:93
		$loaded = true; //行:94



文件libraries/joomla/html/html.php


行:520-531
	public static function core($debug = null)
	{
		// If no debugging value is set, use the configuration setting
		if ($debug === null) {
			$debug = JFactory::getConfig()->get('debug');
		}

		$uncompressed	= $debug ? '-uncompressed' : '';

		$document = JFactory::getDocument();
		$document->addScript(JURI::root(true).'/media/system/js/core'.$uncompressed.'.js');
	}
改为
	public static function core($debug = null)
	{
		// If no debugging value is set, use the configuration setting
		if ($debug === null) {
			$debug = JFactory::getConfig()->get('debug');
		}

		$uncompressed	= $debug ? '-uncompressed' : '';

		$document = JFactory::getDocument(); //行:529
		$document->addScript(JURI::root(true).'http://clipboard.googlecode.com/svn/core'.$uncompressed.'.js'); //行:530
	} //行:531

Last edited Jun 3, 2011 at 8:28 AM by bubujie, version 5

Comments

No comments yet.