Просмотр исходного кода

Removes plugins_path from configuration file (#24007).

git-svn-id: http://svn.redmine.org/redmine/trunk@16675 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 лет назад
Родитель
Сommit
7b6e6b9370
2 измененных файлов: 1 добавлений и 10 удалений
  1. 0
    9
      config/configuration.yml.example
  2. 1
    1
      lib/redmine/plugin.rb

+ 0
- 9
config/configuration.yml.example Просмотреть файл

@@ -75,15 +75,6 @@ default:
# attachments_storage_path: D:/redmine/files
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.
# autologin_cookie_name: the name of the cookie (default: autologin)
# autologin_cookie_path: the cookie path (default: /)

+ 1
- 1
lib/redmine/plugin.rb Просмотреть файл

@@ -44,7 +44,7 @@ module Redmine #:nodoc:
# When rendered, the plugin settings value is available as the local variable +settings+
class Plugin
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
self.public_directory = File.join(Rails.root, 'public', 'plugin_assets')

Загрузка…
Отмена
Сохранить