File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Plugin extends plugin.Plugin {
1313 override val description : String = " Provides Gist feature on GitBucket."
1414 override val versions : List [Version ] = List (Version (1 , 0 ))
1515
16- override def initialize (context : ServletContext , registry : PluginRegistry ): Unit = {
16+ override def initialize (registry : PluginRegistry ): Unit = {
1717 // Add Snippet link to the header
1818 registry.addJavaScript(" .*" ,
1919 """
@@ -26,11 +26,11 @@ class Plugin extends plugin.Plugin {
2626 }
2727
2828 // Mount controller
29- context.mount (new GistController , " /*" )
29+ registry.addController (new GistController , " /*" )
3030
3131 println(" -- Gist plug-in initialized --" )
3232 }
3333
34- override def shutdown (context : ServletContext , registry : PluginRegistry ): Unit = {
34+ override def shutdown (registry : PluginRegistry ): Unit = {
3535 }
3636}
You can’t perform that action at this time.
0 commit comments