small fixes
This commit is contained in:
parent
d305c5b6df
commit
6b6b1156a5
|
@ -44,7 +44,7 @@ class Admin::AdminModulesController < OrbitAdminController
|
||||||
|
|
||||||
def grant_list
|
def grant_list
|
||||||
rm = RegisteredModule.find(params[:id]) rescue nil
|
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
|
@registered_sites = slwm.first
|
||||||
@times = slwm.last
|
@times = slwm.last
|
||||||
render :layout => false
|
render :layout => false
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
module RegisteredModuleHelper
|
module RegisteredModuleHelper
|
||||||
def install_on_server(site, mod)
|
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}
|
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}/")
|
uri = URI.parse("http://#{site.site_domain}/")
|
||||||
http = Net::HTTP.new(uri.host,uri.port)
|
http = Net::HTTP.new(uri.host,uri.port)
|
||||||
|
|
Loading…
Reference in New Issue