mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge pull request #1837 from shivpkumar/master
sub space for underscore in 'name' when registering public folder in plu...
This commit is contained in:
commit
e5198c4fd4
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ class Plugin::Instance
|
|||
if Dir.exists?(public_data)
|
||||
target = Rails.root.to_s + "/public/plugins/"
|
||||
`mkdir -p #{target}`
|
||||
target << name
|
||||
target << name.gsub(/\s/,"_")
|
||||
# TODO a cleaner way of registering and unregistering
|
||||
`rm -f #{target}`
|
||||
`ln -s #{public_data} #{target}`
|
||||
|
|
Loading…
Reference in a new issue