lib/knj/web.rb in knjrbfw-0.0.83 vs lib/knj/web.rb in knjrbfw-0.0.84
- old
+ new
@@ -1,5 +1,5 @@
-require "php4r"
+require "php4r" if !Kernel.const_defined?(:Php4r)
class Knj::Web
#Parses URI and returns hash with data.
def self.parse_uri(str)
uri_match = str.to_s.match(/^\/(.+?\..*?|)(\?(.*)|)$/)
\ No newline at end of file