diff options
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 00fcb6bf5..0bea01a6f 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -7,7 +7,13 @@ # # $Id: general_controller.rb,v 1.57 2009-10-03 10:23:43 francis Exp $ -require 'lib/xmlsimple' +begin + require 'xmlsimple' +rescue LoadError + # Debian maintainers put their xmlsimple in a different location :( + require 'lib/xmlsimple' +end + require 'open-uri' class GeneralController < ApplicationController |