r2454 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2453‎ | r2454 | r2455 >
Date:08:01, 8 February 2004
Author:timstarling
Status:old
Tags:
Comment:
removing commented sections
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1036,32 +1036,6 @@
10371037 if( $iw && $wgInterwikiMagic && $nottalk && $wgLang->getLanguageName( $iw ) ) {
10381038 array_push( $this->mLanguageLinks, $nt->getPrefixedText() );
10391039 $s .= $trail;
1040 -/* CHECK MERGE @@@
1041 - } else if ( "media" == $pre ) {
1042 - $nt = Title::newFromText( $suf );
1043 - $name = $nt->getDBkey();
1044 - if ( "" == $text ) { $text = $nt->GetText(); }
1045 -
1046 - $wgLinkCache->addImageLink( $name );
1047 - $s .= $sk->makeMediaLink( $name,
1048 - wfImageUrl( $name ), $text );
1049 - $s .= $trail;
1050 - } else if ( isset($wgUseCategoryMagic) && $wgUseCategoryMagic && $pre == wfMsg ( "category" ) ) {
1051 - $l = $sk->makeLink ( $pre.":".ucfirst( $m[2] ), ucfirst ( $m[2] ) ) ;
1052 - array_push ( $this->mCategoryLinks , $l ) ;
1053 - $s .= $trail ;
1054 - } else {
1055 - $l = $wgLang->getLanguageName( $pre );
1056 - if ( "" == $l or !$wgInterwikiMagic or Namespace::isTalk( $wgTitle->getNamespace() ) ) {
1057 - if ( "" == $text ) {
1058 - $text = $link;
1059 - }
1060 - $s .= $sk->makeLink( $link, $text, "", $trail );
1061 - } else if ( $pre != $wgLanguageCode ) {
1062 - array_push( $this->mLanguageLinks, "$pre:$suf" );
1063 - $s .= $trail;
1064 - }
1065 -*/
10661040 continue;
10671041 }
10681042 if( $ns == $image ) {
@@ -1069,15 +1043,6 @@
10701044 $wgLinkCache->addImageLinkObj( $nt );
10711045 continue;
10721046 }
1073 -/* CHECK MERGE @@@
1074 -# } else if ( 0 == strcmp( "##", substr( $link, 0, 2 ) ) ) {
1075 -# $link = substr( $link, 2 );
1076 -# $s .= "<a name=\"{$link}\">{$text}</a>{$trail}";
1077 - } else {
1078 - if ( "" == $text ) { $text = $link; }
1079 - # Hotspot:
1080 - $s .= $sk->makeLink( $link, $text, "", $trail );
1081 -*/
10821047 }
10831048 if( $ns == $media ) {
10841049 $s .= $sk->makeMediaLinkObj( $nt, $text ) . $trail;

Status & tagging log