mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: don't search for plugins in nested subdirectories
This commit is contained in:
parent
5d494cf158
commit
6a1f579c6e
2 changed files with 1 additions and 1 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue