Skip to content

Instantly share code, notes, and snippets.

@justinemter
Created December 13, 2012 17:46
Show Gist options
  • Save justinemter/4278237 to your computer and use it in GitHub Desktop.
Save justinemter/4278237 to your computer and use it in GitHub Desktop.
Remove mootool.js / captions.js from joomla 1.5 as per: https://coderwall.com/p/plp6qg
<?php
/*
* JE - 12.13.2012
* The following snippet removes both mootools.js and caption.js from joomla
* Found here: https://coderwall.com/p/plp6qg
*/
defined('_JEXEC') or die;
unset($this->_scripts[JURI::root(true).'/media/system/js/caption.js']);
defined( '_JEXEC' ) or die( 'Access Denied.' );
// Remove mootools and other scripts from header
unset($this->_scripts[JURI::root(true).'/media/system/js/mootools.js']);
//$this->_scripts = array();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment