Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix AutoloadPlugins
Replace TakeWhile with Where to return all plugins for which onload="true".

Fixes https://issues.apache.org/jira/browse/CB-7858.
  • Loading branch information
mmrko committed Nov 20, 2014
1 parent 001430a commit 36282cdb1d26f845482438adbb78c6054dbffcfb
Showing 1 changed file with 1 addition and 2 deletions.
@@ -186,8 +186,7 @@ public string[] AutoloadPlugins
{
get
{
// TODO:
var res = from results in AllowedPlugins.TakeWhile(p => p.Value.isAutoLoad)
var res = from results in AllowedPlugins.Where(p => p.Value.isAutoLoad)
select results.Value.Name;

return res.ToArray<string>();

0 comments on commit 36282cd

Please sign in to comment.