From 6b6b1156a577101f1a3768be9ac1bfa88d767f39 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 13 Jul 2016 15:02:47 +0800 Subject: [PATCH] small fixes --- app/controllers/admin/admin_modules_controller.rb | 2 +- app/helpers/registered_module_helper.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/admin_modules_controller.rb b/app/controllers/admin/admin_modules_controller.rb index 2dd68c3..c2fa950 100644 --- a/app/controllers/admin/admin_modules_controller.rb +++ b/app/controllers/admin/admin_modules_controller.rb @@ -44,7 +44,7 @@ class Admin::AdminModulesController < OrbitAdminController def grant_list rm = RegisteredModule.find(params[:id]) rescue nil - slwm = site_list_with_module(rm, true) + slwm = site_list_with_module(rm, nil) @registered_sites = slwm.first @times = slwm.last render :layout => false diff --git a/app/helpers/registered_module_helper.rb b/app/helpers/registered_module_helper.rb index cb27af3..edcbf1f 100644 --- a/app/helpers/registered_module_helper.rb +++ b/app/helpers/registered_module_helper.rb @@ -1,5 +1,6 @@ module RegisteredModuleHelper def install_on_server(site, mod) + mod = "feeds" if mod == "feed" params_to_send = {"site_token" => site.site_token, "module_name" => mod.name, "git_path" => mod.git_path, "template" => "http://store.tp.rulingcom.com#{mod.template.url}", "module_key" => mod.module_key,"template_filename" => mod.template.file.filename} uri = URI.parse("http://#{site.site_domain}/") http = Net::HTTP.new(uri.host,uri.port)