From e21743caa10ca0b7d8d211cef4b888c21f31a286 Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 14 Oct 2005 04:49:30 +0000 Subject: [PATCH] Use HTML output rather than raw wikitax, to badly support transclusions --- mediawikibotchecker.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mediawikibotchecker.rb b/mediawikibotchecker.rb index c3a3c35..f010d85 100644 --- a/mediawikibotchecker.rb +++ b/mediawikibotchecker.rb @@ -7,10 +7,10 @@ class WikiChecker < MediaWikiBot::WikiBot body += "Unter [[#{page}]] fehlen folgende Artikel aus [[:#{category}]]:\n\n" count = 0 - page_raw = get_raw(page) + page_html = @client.get_content(url_page(page)) get_category_articles(category).each do |title| - re = Regexp.new(Regexp.escape("[[" + title)) - if ! re.match(page_raw) && title != page + re = Regexp.new(Regexp.escape("title=\"" + CGI.escapeHTML(title))) + if ! re.match(page_html) && title != page body += "* [[" + title + "]]\n" count += 1 end