From 867bd26aa9ceebdeb0b279f0850cc948a4ea23bb Mon Sep 17 00:00:00 2001 From: Lupin Date: Sat, 18 Mar 2006 01:06:57 +0000 Subject: [PATCH] unused globals removed --- includes/DifferenceEngine.php | 2 +- includes/Linker.php | 2 -- includes/PageHistory.php | 5 +---- includes/SpecialRevisiondelete.php | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index c6170342a5..2a72692766 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -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 ); diff --git a/includes/Linker.php b/includes/Linker.php index 30654572e1..1cf5a57afa 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -28,8 +28,6 @@ class Linker { /** @todo document */ function getExternalLinkAttributes( $link, $text, $class='' ) { - global $wgContLang; - $link = htmlspecialchars( $link ); $r = ($class != '') ? " class='$class'" : " class='external'"; diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 594a547683..4ad2fe294d 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -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', diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index 940f1f9862..7854c22e69 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -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' ); -- 2.20.1