Skip to content

Commit

Permalink
Merge #16153 - Fix #16102 - Broken error message
Browse files Browse the repository at this point in the history
Pull-request: #16153
Fixes: #16102

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed May 31, 2020
2 parents 802797c + 37b22a5 commit 8e74c29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/classes/Config/FormDisplay.php
Expand Up @@ -824,7 +824,7 @@ public function getDocLink($path)
return MySQLDocumentation::getDocumentationLink(
'config',
'cfg_' . $this->_getOptName($path),
Sanitize::isSetup() ? '../' : ''
Sanitize::isSetup() ? '../' : './'
);
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/classes/Html/MySQLDocumentation.php
Expand Up @@ -82,7 +82,7 @@ public static function showDocumentation($page, $anchor = '', $bbcode = false):
*
* @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';
Expand Down
2 changes: 1 addition & 1 deletion libraries/classes/Sanitize.php
Expand Up @@ -153,7 +153,7 @@ public static function replaceDocLink(array $found)
$page = 'setup';
}
}
$link = MySQLDocumentation::getDocumentationLink($page, $anchor, self::isSetup() ? '../' : '');
$link = MySQLDocumentation::getDocumentationLink($page, $anchor, self::isSetup() ? '../' : './');

return '<a href="' . $link . '" target="documentation">';
}
Expand Down

0 comments on commit 8e74c29

Please sign in to comment.