Handbuch:$wgSaveDeletedFiles
Appearance
Diese Funktion wurde in der Version 1.11.0 vollständig entfernt. |
Dateien und Datei-Uploads: $wgSaveDeletedFiles | |
---|---|
Indicates that deleted images are to be stored for later undeletion. |
|
Eingeführt in Version: | 1.7.0 (r14777) |
Entfernt in Version: | 1.11.0 |
Erlaubte Werte: | (Wahrheitswert) |
Standardwert: | false |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
This setting specifies that files that are deleted via the wiki interface should not be physically removed from the disk, but instead moved out of the way and marked as 'deleted' in the database (in the same way wiki pages are).
MediaWiki 1.11.0 and above
This setting was removed in MediaWiki 1.11.0 as the option is now enabled unconditionally.
Frühere Versionen
Prior to MediaWiki 1.11.0, deleted files were simply discarded by default. To save them and make it possible to undelete images:
- create a directory which is writable to the web server, but not exposed to the Internet
- Setze
$wgSaveDeletedFiles
zu true
- Set up the save path in $wgFileStore ['deleted']['directory']
Beispiele
Hier sind die Standardeinstellungen, welche alle Unterstützung für die Wiederherstellung deaktivieren:
$wgSaveDeletedFiles = false;
$wgFileStore['deleted']['directory'] = null;
Here are the modified settings, which store all deleted images in /var/wiki/private/deleted
:
$wgSaveDeletedFiles = true;
$wgFileStore['deleted']['directory'] = "/var/wiki/private/deleted";