Skip to content

Commit

Permalink
[mikrobi#88] Skip unpublished contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsky committed Nov 26, 2014
1 parent 97ba347 commit 95434f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/components/babel/docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Changelog for Babel.

Babel 3.0.0-dev
==============
- [#88] Skip unpublished contexts
- [#82] Check for resourceId parameter before defaulting.
- [#78][#62] added outputSeparator for BabelLinks
- [#75] Replaced deprecated method clearCache() with refresh()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
continue;
}
$context->prepare();
$cultureKey = $context->getOption('cultureKey',$modx->getOption('cultureKey'));
if (!$context->getOption('site_status', null, true)) {
continue;
}
$cultureKey = $context->getOption('cultureKey',$modx->getOption('cultureKey'));
$translationAvailable = false;
if(isset($linkedResources[$contextKey])) {
$resource = $modx->getObject('modResource',$linkedResources[$contextKey]);
Expand Down

0 comments on commit 95434f0

Please sign in to comment.