From: Niklas Laxström Date: Tue, 10 Jan 2006 18:44:39 +0000 (+0000) Subject: Missing variable declarations X-Git-Tag: 1.6.0~628 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Main?a=commitdiff_plain;h=72bfc638b4e6fa0107266a25ded249d1514a7767;p=lhc%2Fweb%2Fwiklou.git Missing variable declarations --- 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';