Skip to content

Commit df3d144

Browse files
committed
Fix scriptpath for local
The local version (our docker container) still has the API at http://localhost/mediawiki/api.php
1 parent 8d072e2 commit df3d144

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pywikitools/family.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class Family(pywikibot.family.SubdomainFamily):
4141

4242
# this must have the same value as $wgScriptPath in LocalSettings.php of the mediawiki installation
4343
def scriptpath(self, code):
44+
if code == "local":
45+
return "/mediawiki"
4446
return ""
4547

4648
# TODO can be removed when upgrading to pywikibot ^8.2

0 commit comments

Comments
 (0)