Permalink
Browse files

r3606@pinealgland: sven | 2006-04-02 17:44:39 +0200

 removed parsing of article name from html


git-svn-id: svn://78.47.249.61/ruby-mediawiki/trunk@53 ba9c31aa-a806-0410-9a81-9f13d15ee83b
  • Loading branch information...
1 parent 3aa0f03 commit 431bf6d77eb52bbabbe516631f6e810ead6b4851 sven committed Apr 2, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/mediawiki/article.rb
View
@@ -72,7 +72,8 @@ def reload
def parse(html)
doc = REXML::Document.new(html).root
- @name = doc.elements['//span[@class="editHelp"]/a'].attributes['title']
+ # does not work for MediaWiki 1.4.x and is always the same name you ask for under 1.5.x
+ # @name = doc.elements['//span[@class="editHelp"]/a'].attributes['title']
form = doc.elements['//form[@name="editform"]']
@text = form.elements['textarea[@name="wpTextbox1"]'].text
begin

0 comments on commit 431bf6d

Please sign in to comment.