From 72bfc638b4e6fa0107266a25ded249d1514a7767 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 10 Jan 2006 18:44:39 +0000 Subject: [PATCH] Missing variable declarations --- includes/HistoryBlob.php | 1 + includes/OutputPage.php | 2 +- includes/ProxyTools.php | 1 + includes/Title.php | 5 ++--- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 3bf339bc4a..268d224165 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -213,6 +213,7 @@ class HistoryBlobStub { /** @todo document */ function getText() { + $fname = 'HistoryBlob::getText'; global $wgBlobCache; if( isset( $wgBlobCache[$this->mOldId] ) ) { $obj = $wgBlobCache[$this->mOldId]; diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 4d0e783bde..8a5a5db9b4 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -385,7 +385,7 @@ class OutputPage { } function sendCacheControl() { - global $wgUseSquid, $wgUseESI; + global $wgUseSquid, $wgUseESI, $wgSquidMaxage; if ($this->mETag) header("ETag: $this->mETag"); diff --git a/includes/ProxyTools.php b/includes/ProxyTools.php index 5818309bfb..699cf19fa9 100644 --- a/includes/ProxyTools.php +++ b/includes/ProxyTools.php @@ -134,6 +134,7 @@ function wfIsIPPublic( $ip ) { function wfProxyCheck() { global $wgBlockOpenProxies, $wgProxyPorts, $wgProxyScriptPath; global $wgUseMemCached, $wgMemc, $wgDBname, $wgProxyMemcExpiry; + global $wgProxyKey; if ( !$wgBlockOpenProxies ) { return; diff --git a/includes/Title.php b/includes/Title.php index f79edbbcc5..0565ee23d4 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1583,7 +1583,7 @@ class Title { $this->moveOverExistingRedirect( $nt, $reason ); $pageCountChange = 0; } else { # Target didn't exist, do normal move. - $this->moveToNewTitle( $nt, $newid, $reason ); + $this->moveToNewTitle( $nt, $reason ); $pageCountChange = 1; } $redirid = $this->getArticleID(); @@ -1723,10 +1723,9 @@ class Title { /** * Move page to non-existing title. * @param Title &$nt the new Title - * @param int &$newid set to be the new article ID * @access private */ - function moveToNewTitle( &$nt, &$newid, $reason = '' ) { + function moveToNewTitle( &$nt, $reason = '' ) { global $wgUser, $wgUseSquid; global $wgMwRedir; $fname = 'MovePageForm::moveToNewTitle'; -- 2.20.1