summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/account/show.rhtml2
-rw-r--r--app/views/versions/show.rhtml1
-rw-r--r--doc/CHANGELOG2
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb2
4 files changed, 6 insertions, 1 deletions
diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml
index 1ddabbaa5..134c587d0 100644
--- a/app/views/account/show.rhtml
+++ b/app/views/account/show.rhtml
@@ -29,6 +29,7 @@
<% end %>
</ul>
<% end %>
+<%= call_hook :view_account_left_bottom, :user => @user %>
</div>
<div class="splitcontentright">
@@ -64,6 +65,7 @@
<%= auto_discovery_link_tag(:atom, :controller => 'projects', :action => 'activity', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
<% end %>
<% end %>
+<%= call_hook :view_account_right_bottom, :user => @user %>
</div>
<% html_title @user.name %>
diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml
index 7e5264562..914bbcc1a 100644
--- a/app/views/versions/show.rhtml
+++ b/app/views/versions/show.rhtml
@@ -1,5 +1,6 @@
<div class="contextual">
<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
+<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
</div>
<h2><%= h(@version.name) %></h2>
diff --git a/doc/CHANGELOG b/doc/CHANGELOG
index 5bdda5b41..320b2595a 100644
--- a/doc/CHANGELOG
+++ b/doc/CHANGELOG
@@ -10,6 +10,8 @@ http://www.redmine.org/
* Incoming mail handler : Allow spaces between keywords and colon
* Do not require a non-word character after a comma in Redmine links
* Include issue hyperlinks in reminder emails
+* Prevent nil error when retrieving svn version
+* Various plugin hooks added
* Fixed: 500 Internal Server Error is raised if add an empty comment to the news
* Fixed: Atom links for wiki pages are not correct
* Fixed: Atom feeds leak email address
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 0a96ed654..1c85e845e 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -37,7 +37,7 @@ module Redmine
version = nil
shellout(cmd) do |io|
# Read svn version in first returned line
- if m = io.gets.match(%r{((\d+\.)+\d+)})
+ if m = io.gets.to_s.match(%r{((\d+\.)+\d+)})
version = m[0].scan(%r{\d+}).collect(&:to_i)
end
end