We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a694288 commit 0e72b99Copy full SHA for 0e72b99
1 file changed
app/Services/MediaWikiHostResolver.php
@@ -37,6 +37,10 @@ public function getBackendHostForDomain(string $domain): string {
37
public function getMwVersionForDomain(string $domain): string {
38
$wiki = Wiki::where('domain', $domain)->first();
39
40
+ if (!$wiki) {
41
+ throw new UnknownWikiDomainException("Unknown Wiki Domain '{$domain}'.");
42
+ }
43
+
44
$dbVersion = $wiki->wikiDb->version;
45
46
if (array_key_exists($dbVersion, self::DB_VERSION_TO_MW_VERSION)) {
0 commit comments