Browse Source

make links relative

main
ghost 10 months ago
parent
commit
b8fca24d10
  1. 13
      src/controller/error.php
  2. 12
      src/controller/room.php

13
src/controller/error.php

@ -22,18 +22,7 @@ class Error
file_get_contents( file_get_contents(
__DIR__ . '/../../logo.ascii' __DIR__ . '/../../logo.ascii'
), ),
( '/'
$this->_config->gemini->server->port == 1965 ?
sprintf(
'gemini://%s',
$this->_config->gemini->server->host
) :
sprintf(
'gemini://%s:%d',
$this->_config->gemini->server->host,
$this->_config->gemini->server->port
)
)
], ],
file_get_contents( file_get_contents(
__DIR__ . '/../view/oops.gemini' __DIR__ . '/../view/oops.gemini'

12
src/controller/room.php

@ -785,20 +785,10 @@ class Room
$tag ? '=> ' : null $tag ? '=> ' : null
) )
. .
(
$this->_config->gemini->server->port == 1965 ?
sprintf(
'gemini://%s%s',
$this->_config->gemini->server->host,
$path
) :
sprintf( sprintf(
'gemini://%s:%d%s', '/%s',
$this->_config->gemini->server->host,
$this->_config->gemini->server->port,
$path $path
) )
)
. .
( (
$name ? ' ' . $name : null $name ? ' ' . $name : null

Loading…
Cancel
Save