fix typo in comment
[lhc/web/wiklou.git] / includes / specials / SpecialRevisiondelete.php
index 3c54ae5..cb2447d 100644 (file)
@@ -181,24 +181,36 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
         * Show some useful links in the subtitle
         */
        protected function showConvenienceLinks() {
-               global $wgOut, $wgUser;
+               global $wgOut, $wgUser, $wgLang;
                # Give a link to the logs/hist for this page
                if( $this->targetObj ) {
                        $links = array();
                        $logtitle = SpecialPage::getTitleFor( 'Log' );
-                       $links[] = $this->skin->makeKnownLinkObj( $logtitle, wfMsgHtml( 'viewpagelogs' ),
-                               wfArrayToCGI( array( 'page' => $this->targetObj->getPrefixedUrl() ) ) );
+                       $links[] = $this->skin->linkKnown(
+                               $logtitle,
+                               wfMsgHtml( 'viewpagelogs' ),
+                               array(),
+                               array( 'page' => $this->targetObj->getPrefixedText() )
+                       );
                        # Give a link to the page history
-                       $links[] = $this->skin->makeKnownLinkObj( $this->targetObj, wfMsgHtml( 'pagehist' ),
-                               wfArrayToCGI( array( 'action' => 'history' ) ) );
+                       $links[] = $this->skin->linkKnown(
+                               $this->targetObj,
+                               wfMsgHtml( 'pagehist' ),
+                               array(),
+                               array( 'action' => 'history' )
+                       );
                        # Link to deleted edits
                        if( $wgUser->isAllowed('undelete') ) {
                                $undelete = SpecialPage::getTitleFor( 'Undelete' );
-                               $links[] = $this->skin->makeKnownLinkObj( $undelete, wfMsgHtml( 'deletedhist' ),
-                                       wfArrayToCGI( array( 'target' => $this->targetObj->getPrefixedDBkey() ) ) );
+                               $links[] = $this->skin->linkKnown(
+                                       $undelete,
+                                       wfMsgHtml( 'deletedhist' ),
+                                       array(),
+                                       array( 'target' => $this->targetObj->getPrefixedDBkey() )
+                               );
                        }
                        # Logs themselves don't have histories or archived revisions
-                       $wgOut->setSubtitle( '<p>'.implode($links,' / ').'</p>' );
+                       $wgOut->setSubtitle( '<p>' . $wgLang->pipeList( $links ) . '</p>' );
                }
        }
 
@@ -1570,8 +1582,12 @@ class RevDel_LogItem extends RevDel_Item {
                $title = Title::makeTitle( $this->row->log_namespace, $this->row->log_title );
 
                $logtitle = SpecialPage::getTitleFor( 'Log' );
-               $loglink = $this->special->skin->link( $logtitle, wfMsgHtml( 'log' ), array(),
-                       array( 'page' => $title->getPrefixedUrl() ) );
+               $loglink = $this->special->skin->link(
+                       $logtitle,
+                       wfMsgHtml( 'log' ),
+                       array(),
+                       array( 'page' => $title->getPrefixedText() )
+               );
                // Action text
                if( !$this->canView() ) {
                        $action = '<span class="history-deleted">' . wfMsgHtml('rev-deleted-event') . '</span>';