fix my xpath to make it work with ruby 1.8.3
[booh] / lib / booh / booh-lib.rb
index 9e3717291f892483aaf18f3cd20b94892b323d39..e2b4d80c5e8ba46b888819019d87a6f1486ed8f3 100644 (file)
@@ -232,7 +232,7 @@ module Booh
 
     def gen_thumbnails_element(orig, xmldirorelem, allow_background, dests)
         if xmldirorelem.name == 'dir'
-            xmldirorelem = xmldirorelem.elements["[@filename='#{utf8(File.basename(orig))}']"]
+            xmldirorelem = xmldirorelem.elements["*[@filename='#{utf8(File.basename(orig))}']"]
         end
         gen_thumbnails(orig, allow_background, dests, xmldirorelem, '')
     end