Fixes wiki activity provider

pull/749/head
Hagen Schink 11 years ago
parent 4faf4a5b58
commit 9ec3a4d18c
  1. 7
      app/models/activity/wiki_content_activity_provider.rb

@ -28,6 +28,7 @@
#++
class Activity::WikiContentActivityProvider < Activity::BaseActivityProvider
include Redmine::I18n
acts_as_activity_provider type: 'wiki_edits',
permission: :view_wiki_edits
@ -51,7 +52,7 @@ class Activity::WikiContentActivityProvider < Activity::BaseActivityProvider
protected
def event_title(event)
"#abel_wiki_edit)}: #{event['wiki_title']} (##{event['version']})"
"#{l(:label_wiki_edit)}: #{event['wiki_title']} (##{event['version']})"
end
def event_type(event)
@ -73,12 +74,10 @@ class Activity::WikiContentActivityProvider < Activity::BaseActivityProvider
@wiki_pages_table ||= Arel::Table.new(:wiki_pages)
end
def wiki_table
def wikis_table
@wikis_table ||= Arel::Table.new(:wikis)
end
def url_helper_parameter(event)
[ event['project_id'], event['wiki_title'], { version: event['version'] } ]
end

Loading…
Cancel
Save