1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

Removes plugins_path from configuration file (#24007).

git-svn-id: http://svn.redmine.org/redmine/trunk@16675 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-06-17 10:40:51 +00:00
parent 557f8bf87a
commit 7b6e6b9370
2 changed files with 1 additions and 10 deletions

View File

@ -75,15 +75,6 @@ default:
# attachments_storage_path: D:/redmine/files # attachments_storage_path: D:/redmine/files
attachments_storage_path: attachments_storage_path:
# Absolute path to the directory where plugins are stored.
# The default is the 'plugins' directory in your Redmine instance.
# Your Redmine instance needs to have read permission on this
# directory.
# Examples:
# plugins_path: /var/redmine/plugins
# plugins_path: D:/redmine/plugins
plugins_path:
# Configuration of the autologin cookie. # Configuration of the autologin cookie.
# autologin_cookie_name: the name of the cookie (default: autologin) # autologin_cookie_name: the name of the cookie (default: autologin)
# autologin_cookie_path: the cookie path (default: /) # autologin_cookie_path: the cookie path (default: /)

View File

@ -44,7 +44,7 @@ module Redmine #:nodoc:
# When rendered, the plugin settings value is available as the local variable +settings+ # When rendered, the plugin settings value is available as the local variable +settings+
class Plugin class Plugin
cattr_accessor :directory cattr_accessor :directory
self.directory = Redmine::Configuration['plugins_path'] || File.join(Rails.root, 'plugins') self.directory = File.join(Rails.root, 'plugins')
cattr_accessor :public_directory cattr_accessor :public_directory
self.public_directory = File.join(Rails.root, 'public', 'plugin_assets') self.public_directory = File.join(Rails.root, 'public', 'plugin_assets')