Open main menu

Extension:FileSystem

MediaWiki extensions manual
OOjs UI icon advanced.svg
FileSystem
Release status: beta
Implementation Special page , User activity
Description Allows administrators to perform edits on files inside MediaWiki directory.
Author(s) Grzechoootalk
Latest version 0.1 (2014-05-15)
MediaWiki 1.22.x, older versions may work, but haven't been tested
Database changes No
License No license specified
Download
README
  • $wgFileSystemAllowedFiles
  • $wgFileSystemLogFileReads
  • $wgFileSystemLogFileEdits
  • $wgFileSystemEnableGeSHi
  • readfilesystem
  • editfilesystem
Translate the FileSystem extension if it is available at translatewiki.net
Check usage and version matrix.

The FileSystem extension allows administrators to manage (view and edit) files in the MediaWiki directory tree.

InstallationEdit

  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/FileSystem/FileSystem.php";
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parametersEdit

$wgFileSystemAllowedFiles
if non-empty, only files in this array will be readable/editable through the interface. Example configuration:
$wgFileSystemAllowedFiles = array(
    '/LocalSettings.php',
    '/includes/DefaultSettings.php',
);
Default: empty array
$wgFileSystemLogFileReads
if true, any file reads will be logged to Special:Log/filesystem.
Default: false
$wgFileSystemLogFileEdits
if true, any file edits will be logged to Special:Log/filesystem.
Default: true
$wgFileSystemEnableGeSHi
if true, FileSystem will use SyntaxHighlight GeSHi to annotate displayed files.
Default: false

User rightsEdit

  • readfilesystem - allows users to read the files.
  • editfilesystem - allows users to edit the files.

WarningsEdit

  • The extension currently does not do syntax check on .php files, and thus you need to check for syntax errors yourself.
  • Be wary when giving out the right to edit the files, as only file edits are logged (if enabled of course), and not their diffs (although that is planned to be implemented)

See alsoEdit