MediaWiki如何计算图像的文件路径? [英] How does MediaWiki calculate the file path to an image?
问题描述
我只是安装MediaWiki(喜欢它)。我正在寻找这个来添加图片。我可以理解
I'm just installing MediaWiki (loving it). I'm lookin at this for adding images. I can se the logic of
[[File:MediaWiki:Image sample | 50px]]
[[File:MediaWiki:Image sample|50px]]
但是我在哪里设置文件的文件路径(在LocalSettings.php中没什么明显的)......还是有一些其他逻辑工作?
but where so I set the filepath for "File" (nothing obvious in LocalSettings.php) ... or is there some other logic at work?
我很感激任何帮助
谢谢
I'd appreciate any help Thanks
推荐答案
文件位置由 $ wgLocalFileRepo 确定,默认情况下取决于 $ wgUploadDirectory 和 $ wgHashedUploadDirectory 。上传目录默认为 [MediaWiki base dir] / images
(Adrian必须使用旧版本)。 如果启用了散列, / x / xy
将附加到路径,其中xy是文件名的md5哈希的前两个字母。
File location is determined by $wgLocalFileRepo which by default depends on $wgUploadDirectory and $wgHashedUploadDirectory. The upload directory defaults to [MediaWiki base dir]/images
(Adrian must be using an older version). If hashing is enabled, /x/xy
will be appended to the path, where xy are the first two letters of the md5 hash of the filename.
这篇关于MediaWiki如何计算图像的文件路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!