Created
December 13, 2012 17:46
-
-
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
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
<?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