markpages: Use redarticle attribute of Page
Instead of trying to reconstruct our db article title, use the one added to Page-object by redfam.article_generator Related Task: [FS#161](https://fs.golderweb.de/index.php?do=details&task_id=161)
This commit is contained in:
@@ -184,14 +184,8 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
||||
# None if change was not accepted by user
|
||||
save_ret = self.put_current( self.new_text, summary=summary )
|
||||
|
||||
# Normalize title with anchor (replace spaces in anchor)
|
||||
article = self.current_page.toggleTalkPage().title(
|
||||
asLink=True, textlink=True)
|
||||
article = article.strip("[]")
|
||||
article_parts = article.split("#", 1)
|
||||
if len(article_parts) == 2:
|
||||
article_parts[1] = article_parts[1].replace(" ", "_")
|
||||
article = "#".join(article_parts)
|
||||
# Get article as named in db
|
||||
article = self.current_page.redarticle
|
||||
|
||||
# Status
|
||||
if add_ret is None or ( add_ret and save_ret ):
|
||||
|
||||
Reference in New Issue
Block a user