mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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)
|
||||
[].tap { |plugins|
|
||||
# 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
|
||||
next if path =~ /discourse-tagging/
|
||||
|
0
spec/fixtures/plugins/my_plugin/nested/plugin.rb
vendored
Normal file
0
spec/fixtures/plugins/my_plugin/nested/plugin.rb
vendored
Normal file
Loading…
Reference in New Issue
Block a user