Cette révision appartient à :
J. King 2019-08-16 12:15:30 -04:00 révisé par Stéphane Goetz
Parent 633fc593bc
révision 1ba6f269bf
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -120,7 +120,7 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
// For some reason, the filename could contain a # and thus the link needs to resolve to that.
try {
if (strlen($urlAndHash[1]) > 0) {
if (strlen($urlAndHash[1] ?? "") > 0) {
$file = $this->resolveInternalFile($url . '#' . $urlAndHash[1]);
$url = DauxHelper::getRelativePath($this->daux->getCurrentPage()->getUrl(), $file->getUrl());
$foundWithHash = true;