aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
index 59b3777da..512f59f97 100644
--- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
+++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
@@ -584,7 +584,8 @@ module ActsAsXapian
end
def ActsAsXapian._is_xapian_db(path)
- return File.exist?(File.join(temp_path, "iamflint")) or File.exist?(File.join(temp_path, "iamchert"))
+ exists = File.exist?(File.join(path, "iamflint")) or File.exist?(File.join(path, "iamchert"))
+ return exists
end
# You must specify *all* the models here, this totally rebuilds the Xapian