Permalink
Browse files

typo fix in documentation

git-svn-id: svn://78.47.249.61/ruby-mediawiki/trunk@76 ba9c31aa-a806-0410-9a81-9f13d15ee83b
  • Loading branch information...
1 parent 66e5b7b commit 29ecf21d2b85be74e433d15ed750f2faccf42d82 sven committed Nov 9, 2007
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/mediawiki.rb
View
@@ -64,17 +64,17 @@ class Wiki
##
# Initialize a new Wiki instance.
- # url:: [String] URL-Path to index.php (without index.php), may containt <tt>user:password</tt> combination.
+ # url:: [String] URL-Path to index.php (without index.php), may contain <tt>user:password</tt> combination.
# user:: [String] If not nil, log in with that MediaWiki username (see Wiki#login)
# password:: [String] If not nil, log in with that MediaWiki password (see Wiki#login)
# loglevel:: [Integer] Loglevel, default is to log all messages >= Logger::WARN = 2
def initialize(url, user = nil, password = nil, loglevel = Logger::WARN)
if ENV['MEDIAWIKI_DEBUG']
MediaWiki::logger.level = Logger::DEBUG
- else
+ else
MediaWiki::logger.level = loglevel
end
-
+
@url = URI.parse( url.match(/\/$/) ? url : url + '/' )
@browser = MiniBrowser.new(@url)

0 comments on commit 29ecf21

Please sign in to comment.