|
|
@ -9,7 +9,7 @@ require 'mediawiki/dotfile'
|
|
|
|
@wiki.allpages.each do |title|
|
|
|
|
@wiki.allpages.each do |title|
|
|
|
|
MediaWiki::logger.debug("Checking #{title}")
|
|
|
|
MediaWiki::logger.debug("Checking #{title}")
|
|
|
|
text = @wiki.article(title).text
|
|
|
|
text = @wiki.article(title).text
|
|
|
|
s = text.scan(/^.*wikipedia.org.*$/s)
|
|
|
|
s = text.scan(/^.*(?:wikipedia.org|ka.stadtwiki.net).*$/s)
|
|
|
|
if s != []
|
|
|
|
if s != []
|
|
|
|
@body += "* [[#{title}]]\n"
|
|
|
|
@body += "* [[#{title}]]\n"
|
|
|
|
s.each do |m|
|
|
|
|
s.each do |m|
|
|
|
|