Skip to content

Instantly share code, notes, and snippets.

@janich
Created March 7, 2013 13:11

Revisions

  1. janich created this gist Mar 7, 2013.
    19 changes: 19 additions & 0 deletions clipcard.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    /**
    * 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);
    }