We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6800613 commit ff14bcfCopy full SHA for ff14bcf
helper.php
@@ -68,10 +68,11 @@ public function getAnimalURL($animal)
68
{
69
$config = $this->getConfig();
70
71
+ $protocol = is_ssl() ? 'https://' : 'http://';
72
if (str_contains($animal, '.')) {
- return 'http://' . $animal;
73
+ return $protocol . $animal;
74
} elseif ($config['base']['basedomain']) {
- return 'http://' . $animal . '.' . $config['base']['basedomain'];
75
+ return $protocol . $animal . '.' . $config['base']['basedomain'];
76
} else {
77
return DOKU_URL . '!' . $animal . '/';
78
}
0 commit comments