Created
September 21, 2011 17:39
-
-
Save ethangardner/1232763 to your computer and use it in GitHub Desktop.
Remove script tag from the head of Joomla templates for non-admin users
This file contains hidden or 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 | |
$user =& JFactory::getUser(); | |
if ($user->get('guest') == 1) { | |
$headerstuff = $this->getHeadData(); | |
$headerstuff['scripts'] = array(); | |
$this->setHeadData($headerstuff); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment