diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-26 18:03:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-26 18:03:25 +0000 |
commit | 3a28fa01b096f59b5e72989a1e70a31f28d14f65 (patch) | |
tree | 44e7564d81fc65b51cbbfeeb5e61021f4fd1cde1 /app/controllers/admin_controller.rb | |
parent | 8a84884d5042d0bedada0a744129f96f9a772cff (diff) | |
download | redmine-3a28fa01b096f59b5e72989a1e70a31f28d14f65.tar.gz redmine-3a28fa01b096f59b5e72989a1e70a31f28d14f65.zip |
added info about textile availabality on admin/info
git-svn-id: http://redmine.rubyforge.org/svn/trunk@386 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 907c0e743..1c10722de 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -52,7 +52,9 @@ class AdminController < ApplicationController def info @db_adapter_name = ActiveRecord::Base.connection.adapter_name - @default_admin_changed = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil? - @file_repository_writable = File.writable?(Attachment.storage_path) + @flags = Hash.new + @flags[:default_admin_changed] = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil? + @flags[:file_repository_writable] = File.writable?(Attachment.storage_path) + @flags[:textile_available] = ActionView::Helpers::TextHelper.method_defined? "textilize" end end |