Merge #16153 - Fix #16102 - Broken error message

Pull-request: #16153
Fixes: #16102

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-05-31 18:31:05 +02:00
commit 8e74c29baf
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
3 changed files with 3 additions and 3 deletions

View File

@ -824,7 +824,7 @@ class FormDisplay
return MySQLDocumentation::getDocumentationLink(
'config',
'cfg_' . $this->_getOptName($path),
Sanitize::isSetup() ? '../' : ''
Sanitize::isSetup() ? '../' : './'
);
}

View File

@ -82,7 +82,7 @@ class MySQLDocumentation
*
* @return string URL
*/
public static function getDocumentationLink($page, $anchor = '', string $pathPrefix = ''): string
public static function getDocumentationLink($page, $anchor = '', string $pathPrefix = './'): string
{
/* Construct base URL */
$url = $page . '.html';

View File

@ -153,7 +153,7 @@ class Sanitize
$page = 'setup';
}
}
$link = MySQLDocumentation::getDocumentationLink($page, $anchor, self::isSetup() ? '../' : '');
$link = MySQLDocumentation::getDocumentationLink($page, $anchor, self::isSetup() ? '../' : './');
return '<a href="' . $link . '" target="documentation">';
}