improve configuration wording, adjust self check

This commit is contained in:
El RIDO
2022-10-29 07:54:42 +02:00
parent d5104a1d63
commit 432d3e71d3
4 changed files with 21 additions and 20 deletions

View File

@@ -48,7 +48,7 @@ class YourlsProxy
*/
public function __construct(Configuration $conf, $link)
{
if (strpos($link, $conf->getKey('basepath') . '/?') === false) {
if (strpos($link, $conf->getKey('basepath') . '?') === false) {
$this->_error = 'Trying to shorten a URL that isn\'t pointing at our instance.';
return;
}