* (bug 16786) Restored "redundant" links recently removed from Classic sidebar
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 31 Dec 2008 21:31:20 +0000 (21:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 31 Dec 2008 21:31:20 +0000 (21:31 +0000)
Reverted r44780, r44788

RELEASE-NOTES
includes/Skin.php
skins/Standard.php

index 8c16777..b1a48c2 100644 (file)
@@ -462,6 +462,8 @@ The following extensions are migrated into MediaWiki 1.14:
 * Ensure that all HTML id's begin with a letter as required by XHTML standard
 * Image moving over an existing file no longer throws a database error
 * (bug 14117) Image redirects from the shared repo now show "redirected from"
+* (bug 16786) Restored "redundant" links recently removed from Classic sidebar
+
 
 === API changes in 1.14 ===
 
index e5b39e2..636b96b 100644 (file)
@@ -1160,11 +1160,15 @@ END;
                global $wgOut;
                $sep = " |\n";
 
-               $s = $this->mainPageLink();
+               $s = $this->mainPageLink() . $sep
+                 . $this->specialLink( 'recentchanges' );
 
                if ( $wgOut->isArticleRelated() ) {
-                       $s .=  $sep . $this->editThisPage() . $sep . $this->historyLink();
+                       $s .=  $sep . $this->editThisPage()
+                         . $sep . $this->historyLink();
                }
+               # Many people don't like this dropdown box
+               #$s .= $sep . $this->specialPagesList();
 
                $s .= $this->variantLinks();
 
index 01819ba..1f3cab9 100644 (file)
@@ -227,6 +227,10 @@ class SkinStandard extends Skin {
                        # "Post a comment" link
                        if( ( $wgTitle->isTalkPage() || $wgOut->showNewSectionLink() ) && $action != 'edit' && !$wpPreview )
                                $s .= '<br />' . $this->makeKnownLinkObj( $wgTitle, wfMsg( 'postcomment' ), 'action=edit&section=new' );
+                       
+                       #if( $tns%2 && $action!='edit' && !$wpPreview) {
+                               #$s.= '<br />'.$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg('postcomment'),'action=edit&section=new');
+                       #}
 
                        /*
                        watching could cause problems in edit mode:
@@ -250,6 +254,11 @@ class SkinStandard extends Skin {
                        if ($articleExists && $action !='history') {
                                $s .= $sep . $this->historyLink();
                        }
+                       $s.=$sep . $this->whatLinksHere();
+
+                       if($wgOut->isArticleRelated()) {
+                               $s .= $sep . $this->watchPageLinksLink();
+                       }
 
                        if ( NS_USER == $wgTitle->getNamespace()
                                || $wgTitle->getNamespace() == NS_USER_TALK ) {