Update for redmine 5.0.x compatibility

This commit is contained in:
Ludovic Poujol 2022-06-22 11:12:42 +02:00
parent d572ff638d
commit 2c36e7f3c7
3 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'redmine'
begin
require 'config/initializers/session_store.rb'
rescue LoadError
@ -42,10 +43,10 @@ require 'RedCloth'
Redmine::Plugin.register :redmine_wiki_notes do
name 'Redmine Wiki Notes plugin'
author 'Daniel Seifert, Victor Laborie'
author 'Daniel Seifert, Victor Laborie, Ludovic Poujol'
description 'Allows adding different kinds of notes into a wiki page'
url "http://www.github.com/vlaborie/redmine_wiki_notes" if respond_to?(:url)
version '0.0.5'
url "https://gitea.evolix.org/evolix/redmine_wiki_notes" if respond_to?(:url)
version '0.0.6'
requires_redmine :version_or_higher => '4.0.0'
RedCloth3::ALLOWED_TAGS << "div"

View File

@ -1,4 +1,5 @@
require 'redmine'
class WikiNotesApplicationHooks < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context = {})
# beware of http://www.redmine.org/issues/3935

View File

@ -1,4 +1,4 @@
module WikiNotesMacro
module WikiNotesMacros
Redmine::WikiFormatting::Macros.register do
desc "Adds a note to the wiki page:\n\n" +
"<pre>\n" +