@@ -79,7 +79,7 class AdminController < ApplicationController | |||
|
79 | 79 | User.find(:first, |
|
80 | 80 | :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?], |
|
81 | 81 | [:text_file_repository_writable, File.writable?(Attachment.storage_path)], |
|
82 |
[:text_plugin_assets_writable, File.writable?( |
|
|
82 | [:text_plugin_assets_writable, File.writable?(Redmine::Plugin.public_directory)], | |
|
83 | 83 | [:text_rmagick_available, Object.const_defined?(:Magick)] |
|
84 | 84 | ] |
|
85 | 85 | end |
@@ -43,6 +43,9 module Redmine #:nodoc: | |||
|
43 | 43 | # |
|
44 | 44 | # When rendered, the plugin settings value is available as the local variable +settings+ |
|
45 | 45 | class Plugin |
|
46 | cattr_accessor :public_directory | |
|
47 | self.public_directory = File.join(Rails.root, 'public', 'plugin_assets') | |
|
48 | ||
|
46 | 49 | @registered_plugins = {} |
|
47 | 50 | class << self |
|
48 | 51 | attr_reader :registered_plugins |
General Comments 0
You need to be logged in to leave comments.
Login now