FIX: don't search for plugins in nested subdirectories
This commit is contained in:
parent
5d494cf158
commit
6a1f579c6e
|
@ -46,7 +46,7 @@ class Plugin::Instance
|
||||||
def self.find_all(parent_path)
|
def self.find_all(parent_path)
|
||||||
[].tap { |plugins|
|
[].tap { |plugins|
|
||||||
# also follows symlinks - http://stackoverflow.com/q/357754
|
# also follows symlinks - http://stackoverflow.com/q/357754
|
||||||
Dir["#{parent_path}/**/*/**/plugin.rb"].sort.each do |path|
|
Dir["#{parent_path}/*/plugin.rb"].sort.each do |path|
|
||||||
|
|
||||||
# tagging is included in core, so don't load it
|
# tagging is included in core, so don't load it
|
||||||
next if path =~ /discourse-tagging/
|
next if path =~ /discourse-tagging/
|
||||||
|
|
Loading…
Reference in New Issue