MediaWiki: Difference between revisions
| Line 39: | Line 39: | ||
** <code>$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'pdf', 'ps', 'xls', 'txt', 'svg' );</code> | ** <code>$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'pdf', 'ps', 'xls', 'txt', 'svg' );</code> | ||
** Supposedly, all types can be allowed via: | ** Supposedly, all types can be allowed via: | ||
< | <pre>$wgCheckFileExtensions = false; | ||
$wgStrictFileExtensions = false; | $wgStrictFileExtensions = false; | ||
$wgVerifyMimeType = false; | $wgVerifyMimeType = false; | ||
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); | $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); | ||
$wgFileBlacklist = array(); | $wgFileBlacklist = array(); | ||
$wgMimeTypeBlacklist= array();</ | $wgMimeTypeBlacklist= array();</pre> | ||
* Support inline equations: <tt>sudoedit /etc/mediawiki/LocalSettings.php</tt> and change | * Support inline equations: <tt>sudoedit /etc/mediawiki/LocalSettings.php</tt> and change | ||
** <code>$wgUseTeX = false;</code> so that it uses <tt>true</tt> instead | ** <code>$wgUseTeX = false;</code> so that it uses <tt>true</tt> instead | ||