unused globals removed
authorLupin <lupin-wp@users.mediawiki.org>
Sat, 18 Mar 2006 01:06:57 +0000 (01:06 +0000)
committerLupin <lupin-wp@users.mediawiki.org>
Sat, 18 Mar 2006 01:06:57 +0000 (01:06 +0000)
includes/DifferenceEngine.php
includes/Linker.php
includes/PageHistory.php
includes/SpecialRevisiondelete.php

index c617034..2a72692 100644 (file)
@@ -212,7 +212,7 @@ CONTROL;
         * contrast to normal "old revision" display style.
         */
        function showFirstRevision() {
-               global $wgOut, $wgUser, $wgLang;
+               global $wgOut, $wgUser;
 
                $fname = 'DifferenceEngine::showFirstRevision';
                wfProfileIn( $fname );
index 3065457..1cf5a57 100644 (file)
@@ -28,8 +28,6 @@ class Linker {
 
        /** @todo document */
        function getExternalLinkAttributes( $link, $text, $class='' ) {
-               global $wgContLang;
-
                $link = htmlspecialchars( $link );
 
                $r = ($class != '') ? " class='$class'" : " class='external'";
index 594a547..4ad2fe2 100644 (file)
@@ -268,7 +268,7 @@ class PageHistory {
        
        /** @todo document */
        function revLink( $rev ) {
-               global $wgUser, $wgLang;
+               global $wgLang;
                $date = $wgLang->timeanddate( wfTimestamp(TS_MW, $rev->getTimestamp()), true );
                if( $rev->userCan( MW_REV_DELETED_TEXT ) ) {
                        $link = $this->mSkin->makeKnownLinkObj(
@@ -284,7 +284,6 @@ class PageHistory {
 
        /** @todo document */
        function curLink( $rev, $latest ) {
-               global $wgUser;
                $cur = wfMsgHtml( 'cur' );
                if( $latest || !$rev->userCan( MW_REV_DELETED_TEXT ) ) {
                        return $cur;
@@ -298,7 +297,6 @@ class PageHistory {
 
        /** @todo document */
        function lastLink( $rev, $next, $counter ) {
-               global $wgUser;
                $last = htmlspecialchars( wfMsg( 'last' ) );
                if( is_null( $next ) ) {
                        if( $rev->getTimestamp() == $this->getEarliestOffset() ) {
@@ -326,7 +324,6 @@ class PageHistory {
 
        /** @todo document */
        function diffButtons( $rev, $firstInList, $counter ) {
-               global $wgUser;
                if( $this->linesonpage > 1) {
                        $radio = array(
                                'type'  => 'radio',
index 940f1f9..7854c22 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 function wfSpecialRevisiondelete( $par = null ) {
-       global $wgOut, $wgRequest, $wgUser, $wgContLang;
+       global $wgOut, $wgRequest, $wgUser;
        
        $target = $wgRequest->getVal( 'target' );
        $oldid = $wgRequest->getInt( 'oldid' );