Skip to content

Instantly share code, notes, and snippets.

@janich
Created March 7, 2013 13:11
Show Gist options
  • Save janich/5107950 to your computer and use it in GitHub Desktop.
Save janich/5107950 to your computer and use it in GitHub Desktop.
Temporary fix to have BS carousel working with Joomla <= 3.0.2
/**
* Remove mootools-more to have Bootstrap carousel working.
* @return void
*/
public static function removeMTMore()
{
$headers = JFactory::getDocument()->getHeadData();
foreach($headers['scripts'] as $url => $type)
{
if (strpos($url, 'mootools-more') !== false)
{
unset($headers['scripts'][$url]);
}
}
JFactory::getDocument()->setHeadData($headers);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment