Revert r29361 -- breaks upload, calls nonexistent functions
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 8 Jan 2008 22:01:23 +0000 (22:01 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 8 Jan 2008 22:01:23 +0000 (22:01 +0000)
includes/filerepo/FSRepo.php
includes/filerepo/RepoGroup.php

index acffb4b..84ec9a2 100644 (file)
@@ -149,7 +149,7 @@ class FSRepo extends FileRepo {
                                // In the deleted zone, seed new directories with a blank 
                                // index.html, to prevent crawling
                                if ( $dstZone == 'deleted' ) {
-                                       $this->file_put_contents( "$dstDir/index.html", '' );
+                                       file_put_contents( "$dstDir/index.html", '' );
                                }
                        }
                        
@@ -189,7 +189,7 @@ class FSRepo extends FileRepo {
 
                        if ( $flags & self::DELETE_SOURCE ) {
                                if ( $deleteDest ) {
-                                       $this->unlink( $dstPath );
+                                       unlink( $dstPath );
                                }
                                if ( !rename( $srcPath, $dstPath ) ) {
                                        $status->error( 'filerenameerror', $srcPath, $dstPath );
@@ -202,7 +202,7 @@ class FSRepo extends FileRepo {
                                }
                        }
                        if ( $good ) {
-                               $this->chmod( $dstPath, 0644 );
+                               chmod( $dstPath, 0644 );
                                $status->successCount++;
                        } else {
                                $status->failCount++;
@@ -525,11 +525,6 @@ class FSRepo extends FileRepo {
                return strtr( $param, $this->simpleCleanPairs );
        }
 
-       function file_put_contents( $fileName, $contents ) {
-               file_put_contents( $fileName, $contents );
-       }
-
-       
 }
 
 
index 4e9a8a6..1204031 100644 (file)
@@ -31,13 +31,6 @@ class RepoGroup {
                self::$instance = null;
        }
 
-       /**
-        * Set the singleton instance to a given object
-        */
-       static function setSingleton( $instance ) {
-               self::$instance = $instance;
-       }
-
        /**
         * Construct a group of file repositories. 
         * @param array $data Array of repository info arrays.