Skip to content

Instantly share code, notes, and snippets.

@mbabker mbabker/wtf.php
Created Jul 8, 2014

What would you like to do?
You can't make this up...
// 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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.