Skip to content

Commit 0e72b99

Browse files
committed
fix rebase
1 parent a694288 commit 0e72b99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/Services/MediaWikiHostResolver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public function getBackendHostForDomain(string $domain): string {
3737
public function getMwVersionForDomain(string $domain): string {
3838
$wiki = Wiki::where('domain', $domain)->first();
3939

40+
if (!$wiki) {
41+
throw new UnknownWikiDomainException("Unknown Wiki Domain '{$domain}'.");
42+
}
43+
4044
$dbVersion = $wiki->wikiDb->version;
4145

4246
if (array_key_exists($dbVersion, self::DB_VERSION_TO_MW_VERSION)) {

0 commit comments

Comments
 (0)