Manual:$wgLocalFileRepo
From MediaWiki.org
Uploads: $wgLocalFileRepo | |
---|---|
A single repository structure for the local repository. |
|
Introduced in version: | 1.11.0 (r22580) |
Removed in version: | still in use |
Allowed values: | (array) |
Default value: | (see below) |
Other settings: Alphabetical | By Function
Details [edit]
Properties required for all repos:
- class
- The class name for the repository. May come from the core or an extension. The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
- name
- A unique name for the repository.
For all core repos:
- url
- Base public URL
- hashLevels
- The number of directory levels for hash-based division of files
- thumbScriptUrl
- The URL for thumb.php (optional, not recommended)
- transformVia404
- Whether to skip media file transformation on parse and rely on a 404 handler instead.
- initialCapital
- Equivalent to $wgCapitalLinks, determines whether filenames implicitly start with a capital letter. The current implementation may give incorrect description page links when the local $wgCapitalLinks and initialCapital are mismatched.
- pathDisclosureProtection
- May be 'paranoid' to remove all parameters from error messages, 'none' to leave the paths in unchanged, or 'simple' to replace paths with placeholders. Default for LocalRepo is 'simple'.
ForeignDBRepo class :
- dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
- equivalent to the corresponding member of $wgDBservers
- tablePrefix
- Table prefix, the foreign wiki's $wgDBprefix
- hasSharedCache
- True if the wiki's shared cache is accessible via the local $wgMemc
Default Value (code in Setup.php) :
$wgLocalFileRepo = array( 'class' => 'LocalRepo', 'name' => 'local', 'directory' => $wgUploadDirectory, 'url' => $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath, 'hashLevels' => $wgHashedUploadDirectory ? 2 : 0, 'thumbScriptUrl' => $wgThumbnailScriptPath, 'transformVia404' => !$wgGenerateThumbnailOnParse, 'initialCapital' => $wgCapitalLinks, 'deletedDir' => $wgFileStore['deleted']['directory'], 'deletedHashLevels' => $wgFileStore['deleted']['hash'] );
Language: | English • 日本語 |
---|