]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Rework piwik configuration
[rails.git] / app / controllers / user_controller.rb
index c3cd9fcf22f4cbf994555a00240895ffde9f3b52..a7822e47fd436188d703fe55493482d9649a92cb 100644 (file)
@@ -86,7 +86,7 @@ class UserController < ApplicationController
         @user.openid_url = nil if @user.openid_url and @user.openid_url.empty?
 
         if @user.save
-          flash[:piwik_goal] = PIWIK_SIGNUP_GOAL if defined?(PIWIK_SIGNUP_GOAL)
+          flash[:piwik_goal] = PIWIK["goals"]["signup"] if defined?(PIWIK)
 
           referer = welcome_path