radiant_helper 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,10 @@ module Radiant
23
23
  get_config_param(:radiant_server_time_out)
24
24
  end
25
25
 
26
+ def self.use_local_layouts?
27
+ get_config_param(:use_local_layouts)
28
+ end
29
+
26
30
  def self.logger
27
31
  if const_defined?("RAILS_DEFAULT_LOGGER")
28
32
  return RAILS_DEFAULT_LOGGER
@@ -26,13 +26,16 @@ module Radiant
26
26
  end
27
27
 
28
28
  def has_layout?
29
- ivar_cache("has_layout") do
30
- unless self.body.nil?
31
- b = self.body.downcase
32
- return ((b.match("<html>") ? true : false) && (b.match("</html>") ? true : false))
29
+ if Radiant::Helper.use_local_layouts?
30
+ ivar_cache("has_layout") do
31
+ unless self.body.nil?
32
+ b = self.body.downcase
33
+ return ((b.match("<html>") ? true : false) && (b.match("</html>") ? true : false))
34
+ end
35
+ return false
33
36
  end
34
- return false
35
37
  end
38
+ true
36
39
  end
37
40
 
38
41
  def exception
@@ -2,4 +2,4 @@
2
2
  gem_name: radiant_helper
3
3
  package: radiant_helper
4
4
  project: magrathea
5
- version: 1.0.7
5
+ version: 1.0.8
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: radiant_helper
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.7
7
- date: 2007-10-17 00:00:00 -04:00
6
+ version: 1.0.8
7
+ date: 2007-12-07 00:00:00 -05:00
8
8
  summary: radiant_helper
9
9
  require_paths:
10
10
  - lib