API16:JHtml/core
From Joomla! Documentation
<! removed transcluded page call, red link never existed >
Syntax
static core($debug=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $debug | null |
Defined in
libraries/joomla/html/html.php
Importing
jimport( 'joomla.html.html' );
Source Body
public static function core($debug = null)
{
// If no debugging value is set, use the configuration setting
if ($debug === null) {
$debug = JFactory::getConfig()->getValue('config.debug');
}
// TODO NOTE: Here we are checking for Konqueror - If they fix their issue with compressed, we will need to update this
$konkcheck = strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "konqueror");
$uncompressed = ($debug || $konkcheck) ? '-uncompressed' : '';
$document = &JFactory::getDocument();
$document->addScript(JURI::root(true).'/media/system/js/core'.$uncompressed.'.js');
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples