ref: master
plugins/piwik/controllers/piwik_plugin_admin_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
class PiwikPluginAdminController < PluginAdminController append_view_path File.join(File.dirname(__FILE__) + '/../views') def index if request.post? if @environment.update(params[:environment]) session[:notice] = _('Piwik plugin settings updated successfully.') else session[:notice] = _('Piwik plugin settings could not be saved.') end redirect_to :controller => 'plugins', :action => 'index' end end end |