Skip to content

Commit

Permalink
🐛 Fix outdated usage of namespaces variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
elifoster committed Dec 12, 2015
1 parent 5ef2d30 commit 84a4337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediawiki/query/lists.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_random_pages(number_of_pages = 1, namespace = 0)
rnlimit: get_limited(number_of_pages, 10, 20)
}

if @namespaces.value?(namespace)
if MediaWiki::Constants::NAMESPACES.value?(namespace)
params[:rnnamespace] = namespace
else
params[:rnnamespace] = 0
Expand Down

0 comments on commit 84a4337

Please sign in to comment.