Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 29ecf21d2b85be74e433d15ed750f2faccf42d82 1 parent 66e5b7b
sven authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/mediawiki.rb
View
6 lib/mediawiki.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.