From d2267106c2d6fa2a7cd3892cf16f12861a6f293e Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Tue, 23 Feb 2016 13:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dteam.trustie.net=E7=9A=84?= =?UTF-8?q?=E4=BE=A7=E6=A0=8F=E7=82=B9=E5=87=BB=E5=90=8E=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=8F=E7=9B=AE=E5=86=85=E5=AE=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/initializers/subdomain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/subdomain.rb b/config/initializers/subdomain.rb index f813a24a0..b66059de5 100644 --- a/config/initializers/subdomain.rb +++ b/config/initializers/subdomain.rb @@ -9,7 +9,7 @@ class Subdomain o = ::Secdomain.where(subname: request.subdomain).first if(@opt[:sub]) - if o && o.sub_type == 2 && request.path_parameters[:sub_dir_name] == 'news' + if o && o.sub_type == 2 request.path_parameters[:id] = o.pid request.path_parameters[:controller] = 'org_subfields' request.path_parameters[:action] = 'show'