Created
March 7, 2013 13:11
-
-
Save janich/5107950 to your computer and use it in GitHub Desktop.
Temporary fix to have BS carousel working with Joomla <= 3.0.2
This file contains 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
/** | |
* 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