New and Announcement search. Disabled impression.

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-07-20 15:47:40 +08:00
1 parent 033667f99b
commit f9bdb4a327
39 files changed
+222 -1345

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ class PagesController < ApplicationController
#begin
@item = Item.first(:conditions => {:path => params[:page_name]})
if @item && @item.is_published && (@item.enabled_for.nil? ? true : @item.enabled_for.include?(I18n.locale.to_s))
impressionist(@item)
# impressionist(@item)
case @item._type
when 'Page'
render_page