Manual:$wgLocalFileRepo/fr

Propriétés nécessaires pour tous les dépôts

 * class
 * Nom de classe du dépôt. Peut venir du noyau ou d'une extension. Les classes de dépôt du noyau sont : FileRepo, LocalRepo, ForeignDBRepo. (FSRepo est aussi pris en charge pour la compatibilité arrière).


 * name
 * Doit être mis à.


 * backend
 * A file backend name (see ). For $wgLocalFileRepo and, a name is automatically generated in if not defined.

For all core repos

 * url
 * Base public URL


 * hashLevels
 * The number of directory levels for hash-based division of files (see for info)


 * 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, determines whether filenames implicitly start with a capital letter. The current implementation may give incorrect description page links when the local 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'.

Default value
This code, in Setup.php, generates a default value for $wgLocalFileRepo based on the values of other configuration settings:

if ( !$wgLocalFileRepo ) { if ( isset( ['deleted']['hash'] ) ) { $deletedHashLevel = ['deleted']['hash']; } else { $deletedHashLevel = ? 3 : 0;    }     $wgLocalFileRepo = array(         'class' => 'LocalRepo',         'name' => 'local',         'directory' =>,         'scriptDirUrl' => ,         'scriptExtension' => ,         'url' =>  ?  .  : ,         'hashLevels' =>  ? 2 : 0,         'thumbScriptUrl' => ,         'transformVia404' => !,         'deletedDir' => ,         'deletedHashLevels' => $deletedHashLevel     ); }