// 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", '' );
}
}
if ( $flags & self::DELETE_SOURCE ) {
if ( $deleteDest ) {
- $this->unlink( $dstPath );
+ unlink( $dstPath );
}
if ( !rename( $srcPath, $dstPath ) ) {
$status->error( 'filerenameerror', $srcPath, $dstPath );
}
}
if ( $good ) {
- $this->chmod( $dstPath, 0644 );
+ chmod( $dstPath, 0644 );
$status->successCount++;
} else {
$status->failCount++;
return strtr( $param, $this->simpleCleanPairs );
}
- function file_put_contents( $fileName, $contents ) {
- file_put_contents( $fileName, $contents );
- }
-
-
}
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.