if ( !isset( $this->simpleCleanPairs ) ) {
global $IP;
$this->simpleCleanPairs = array(
- $this->directory => "mwrepo://{$this->name}/public",
- "{$this->directory}/temp" => "mwrepo://{$this->name}/temp",
+ $this->directory => 'public',
+ "{$this->directory}/temp" => 'temp',
$IP => '$IP',
dirname( __FILE__ ) => '$IP/extensions/WebStore',
);
if ( $this->deletedDir ) {
- $this->simpleCleanPairs[$this->deletedDir] = "mwrepo://{$this->name}/deleted";
+ $this->simpleCleanPairs[$this->deletedDir] = 'deleted';
}
}
return strtr( $param, $this->simpleCleanPairs );
var $fileFromRowFactory = array( 'LocalFile', 'newFromRow' );
var $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
- function __construct( $info ) {
- parent::__construct( $info );
-
- # Initialize simpleCleanPairs, to make errors less misleading
- global $IP;
- $this->simpleCleanPairs = array(
- $this->directory => '$wgUploadDirectory',
- wfTempDir() => '{wfTempDir()}',
- $IP => '$IP',
- );
- if ( $this->deletedDir ) {
- $this->simpleCleanPairs[$this->deletedDir] = '{$wgFileStore[\'deleted\'][\'directory\']}';
- }
- }
-
function getSlaveDB() {
return wfGetDB( DB_SLAVE );
}