A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Get LocalRepo objects

vscam

Hi,

Does anyone know how to get all LocalRepo instances (which stores where the images are uploaded)? Any methods for that?

Thanks

Tgr

There is only one local repo. Did you mean all FileRepo instances?

Ciencia-Al-Poder

You can use wfFindFile() to get the File, and then call getRepo() on that file to get the FileRepo class of that file.