Mark the history link on page deletion as known.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 2 Aug 2012 12:06:20 +0000 (14:06 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 2 Aug 2012 12:06:20 +0000 (14:06 +0200)
Two reasons:
- the page must exists to reach this part of the code
- it's useless to have special classes (redirect, stub)
  since this a link to the history and not to the
  content itself

Change-Id: I59af2f237e0539842cc7777ddd44ba5ac500b070

includes/Article.php

index e1e08c9..6fc0acd 100644 (file)
@@ -1384,7 +1384,7 @@ class Article extends Page {
                        // @todo FIXME: i18n issue/patchwork message
                        $this->getContext()->getOutput()->addHTML( '<strong class="mw-delete-warning-revisions">' .
                                wfMsgExt( 'historywarning', array( 'parseinline' ), $this->getContext()->getLanguage()->formatNum( $revisions ) ) .
-                               wfMsgHtml( 'word-separator' ) . Linker::link( $title,
+                               wfMsgHtml( 'word-separator' ) . Linker::linkKnown( $title,
                                        wfMsgHtml( 'history' ),
                                        array( 'rel' => 'archives' ),
                                        array( 'action' => 'history' ) ) .