Created
July 8, 2014 18:26
-
-
Save mbabker/cfb9577a9fd721ecec1e to your computer and use it in GitHub Desktop.
You can't make this up...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instead of a simple call to JHtml::_('behavior.framework') I have to deal with this... | |
if (JVERSION >= '1.6.0') { | |
$file = JUri::root() . '/media/system/js/core.js'; | |
$loaded = false; | |
foreach ($document->_scripts as $key => $value) { | |
if ($key == $file) { | |
$loaded = true; | |
} | |
if (!$loaded) { | |
$document->addScript($file); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment