Minor action=info redirect changes
authorMarius Hoch <hoo@online.de>
Wed, 17 Oct 2012 20:00:15 +0000 (22:00 +0200)
committerMarius Hoch <hoo@online.de>
Wed, 17 Oct 2012 20:00:15 +0000 (22:00 +0200)
Follow up to Change-Id: I17ab90af902b3b23d5c9bc23f0c71a18d1006cb8
fixing minor stuff (using the word separator message to seperate
the page name and (info) and escaping the link text given to
Linker::link)

Change-Id: I6d5e2ecf2c8a9394556426e952812f4b0d2ad529

includes/actions/InfoAction.php

index 37e6588..05b6dcf 100644 (file)
@@ -207,10 +207,11 @@ class InfoAction extends FormlessAction {
                if ( $title->isRedirect() ) {
                        $pageInfo['header-basic'][] = array(
                                $this->msg( 'pageinfo-redirectsto' ),
-                               Linker::link( $this->page->getRedirectTarget() ) . ' ' .
+                               Linker::link( $this->page->getRedirectTarget() ) .
+                               $this->msg( 'word-separator' )->text() .
                                $this->msg( 'parentheses', Linker::link(
                                        $this->page->getRedirectTarget(),
-                                       $this->msg( 'pageinfo-redirectsto-info' ),
+                                       $this->msg( 'pageinfo-redirectsto-info' )->escaped(),
                                        array(),
                                        array( 'action' => 'info' )
                                ) )->text()