Skip to content

Commit ff14bcf

Browse files
committed
Fix protocol in animal list
1 parent 6800613 commit ff14bcf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

helper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ public function getAnimalURL($animal)
6868
{
6969
$config = $this->getConfig();
7070

71+
$protocol = is_ssl() ? 'https://' : 'http://';
7172
if (str_contains($animal, '.')) {
72-
return 'http://' . $animal;
73+
return $protocol . $animal;
7374
} elseif ($config['base']['basedomain']) {
74-
return 'http://' . $animal . '.' . $config['base']['basedomain'];
75+
return $protocol . $animal . '.' . $config['base']['basedomain'];
7576
} else {
7677
return DOKU_URL . '!' . $animal . '/';
7778
}

0 commit comments

Comments
 (0)