Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Fix what_links_here_url to return URL and not nil
Browse files Browse the repository at this point in the history
git-svn-id: svn://78.47.249.61/ruby-mediawiki/trunk@77 ba9c31aa-a806-0410-9a81-9f13d15ee83b
  • Loading branch information
neingeist committed Feb 9, 2009
1 parent 29ecf21 commit 2f76cdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mediawiki/article.rb
Expand Up @@ -219,6 +219,7 @@ def unprotect(reason)
def what_links_here_url(count = nil) def what_links_here_url(count = nil)
url = @wiki.article_url("Special:Whatlinkshere/#{full_name}") url = @wiki.article_url("Special:Whatlinkshere/#{full_name}")
url << "&limit=#{count}" if count url << "&limit=#{count}" if count
url
end end




Expand Down

0 comments on commit 2f76cdd

Please sign in to comment.