Skip to content

Commit

Permalink
Merge pull request joomla#1320 from okonomiyaki3000/JCacheControllerC…
Browse files Browse the repository at this point in the history
…allback-bugfix

Check that $wpoption['modulemode'] == 1, not just that it is set.
  • Loading branch information
chdemko committed Jun 28, 2012
2 parents cd166d3 + 91da860 commit 01b4f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/cache/controller/callback.php
Expand Up @@ -141,10 +141,10 @@ public function get($callback, $args = array(), $id = false, $wrkarounds = false
$locktest = $this->cache->lock($id);
}

if (isset($woptions['modulemode']))
if (isset($woptions['modulemode']) && $woptions['modulemode'] == 1)
{
$document = JFactory::getDocument();
$coptions['modulemode'] = $woptions['modulemode'];
$coptions['modulemode'] = 1;
$coptions['headerbefore'] = $document->getHeadData();
}
else
Expand Down

0 comments on commit 01b4f37

Please sign in to comment.