Skip to content

Commit c2093e7

Browse files
splitbraingithub-actions[bot]
authored andcommitted
🤖 Automatic code style fixes
1 parent 6800613 commit c2093e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎DokuWikiFarmCore.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ protected function detectAnimal($sapi = null)
244244
$urlparts['query'] ??= '';
245245

246246
// detect the animal from the URL
247-
$this->detectAnimalFromQueryString($urlparts['query']) ||
248-
$this->detectAnimalFromBangPath($urlparts['path']) ||
249-
$this->detectAnimalFromHostName($urlparts['host']);
247+
if (!$this->detectAnimalFromQueryString($urlparts['query']) && !$this->detectAnimalFromBangPath($urlparts['path'])) {
248+
$this->detectAnimalFromHostName($urlparts['host']);
249+
}
250250

251251
// fake baseurl etc.
252252
$this->injectServerEnvironment($urlparts);

0 commit comments

Comments
 (0)