six-updater-web 0.22.2 → 0.22.3
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -166,7 +166,7 @@ class Mod < ActiveRecord::Base
|
|
166
166
|
Dir.chdir setting.real_modpath.clone do
|
167
167
|
Dir["@*"].each do |dir|
|
168
168
|
next unless File.directory?(dir)
|
169
|
-
m = Mod.find(:first, :conditions => "name LIKE
|
169
|
+
m = Mod.find(:first, :conditions => ["name LIKE ?", dir])
|
170
170
|
unless m
|
171
171
|
m = Mod.new :name => dir
|
172
172
|
m.save
|
@@ -32,7 +32,7 @@ class Queryserver < ActiveRecord::Base
|
|
32
32
|
def mods_fetch
|
33
33
|
if self.mod.size > 0
|
34
34
|
self.mod.reject {|m| SYS_MODS.include? m }.map do |m|
|
35
|
-
mods = Mod.find(:all, :conditions => "name LIKE
|
35
|
+
mods = Mod.find(:all, :conditions => ["name LIKE ?", m]) # needed for case insensitivity :S
|
36
36
|
mod = nil
|
37
37
|
mods.each do |mo|
|
38
38
|
if mo.name.downcase == m.downcase
|
@@ -58,7 +58,7 @@ class Queryserver < ActiveRecord::Base
|
|
58
58
|
def mods_fetch2
|
59
59
|
if self.mod.size > 0
|
60
60
|
self.mod.reject {|m| SYS_MODS.include? m }.map do |m|
|
61
|
-
mods = Mod.find(:all, :conditions => "name LIKE
|
61
|
+
mods = Mod.find(:all, :conditions => ["name LIKE ?", m]) # needed for case insensitivity :S
|
62
62
|
mod = nil
|
63
63
|
mods.each do |mo|
|
64
64
|
if mo.name.downcase == m.downcase
|