Fix a couple notices/strict warnings
authorAlex Z <mrzman@users.mediawiki.org>
Sat, 25 Jul 2009 00:19:36 +0000 (00:19 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Sat, 25 Jul 2009 00:19:36 +0000 (00:19 +0000)
includes/HttpFunctions.php

index 69c9d58..4149a6d 100644 (file)
@@ -93,7 +93,7 @@ class Http {
         * should write to a file location and give updates
         *
         */
-       private function initBackgroundDownload( $url, $target_file_path, $content_length = null ){
+       private static function initBackgroundDownload( $url, $target_file_path, $content_length = null ){
                global $wgMaxUploadSize, $IP, $wgPhpCli, $wgServer;
                $status = Status::newGood();
 
@@ -115,7 +115,7 @@ class Http {
 
                // run the background download request:
                $cmd = $wgPhpCli . ' ' . $IP . "/maintenance/http_session_download.php --sid {$session_id} --usk {$upload_session_key}";
-               $pid = wfShellBackgroundExec( $cmd, $retval );
+               $pid = wfShellBackgroundExec( $cmd );
                // the pid is not of much use since we won't be visiting this same apache any-time soon.
                if( !$pid )
                        return Status::newFatal( 'could not run background shell exec' );
@@ -127,7 +127,7 @@ class Http {
                return $status;
        }
 
-       function getUploadSessionKey(){
+       static function getUploadSessionKey(){
                $key = mt_rand( 0, 0x7fffffff );
                $_SESSION['wsUploadData'][$key] = array();
                return $key;
@@ -566,4 +566,4 @@ class simpleFileWriter {
                }
        }
 
-}
\ No newline at end of file
+}