Last active
November 7, 2016 23:26
-
-
Save heyjoecampbell/ecd68c7447fa8c55a82ac8bfc83cdb93 to your computer and use it in GitHub Desktop.
Unset Joomla! Scripts from Template
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
// Unset unwanted Scripts - by name | |
$unset_script = array('k2'); | |
foreach($this->_scripts as $name=>$script) | |
{ | |
foreach($unset_script as $script) | |
{ | |
if (strpos($name,$script) !== false) | |
{ | |
unset($this->_scripts[$name]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this. Bit cleaner.