Missing variable declarations
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 10 Jan 2006 18:44:39 +0000 (18:44 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 10 Jan 2006 18:44:39 +0000 (18:44 +0000)
includes/HistoryBlob.php
includes/OutputPage.php
includes/ProxyTools.php
includes/Title.php

index 3bf339b..268d224 100644 (file)
@@ -213,6 +213,7 @@ class HistoryBlobStub {
 
        /** @todo document */
        function getText() {
+               $fname = 'HistoryBlob::getText';
                global $wgBlobCache;
                if( isset( $wgBlobCache[$this->mOldId] ) ) {
                        $obj = $wgBlobCache[$this->mOldId];
index 4d0e783..8a5a5db 100644 (file)
@@ -385,7 +385,7 @@ class OutputPage {
        }
 
        function sendCacheControl() {
-               global $wgUseSquid, $wgUseESI;
+               global $wgUseSquid, $wgUseESI, $wgSquidMaxage;
 
                if ($this->mETag)
                        header("ETag: $this->mETag");
index 5818309..699cf19 100644 (file)
@@ -134,6 +134,7 @@ function wfIsIPPublic( $ip ) {
 function wfProxyCheck() {
        global $wgBlockOpenProxies, $wgProxyPorts, $wgProxyScriptPath;
        global $wgUseMemCached, $wgMemc, $wgDBname, $wgProxyMemcExpiry;
+       global $wgProxyKey;
 
        if ( !$wgBlockOpenProxies ) {
                return;
index f79edbb..0565ee2 100644 (file)
@@ -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';