X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/69e4391bfb53ce2d7a3a42f69e37bbf136d3ee09..HEAD:/www/edit.php diff --git a/www/edit.php b/www/edit.php index e7e6fbc..1ced7b6 100644 --- a/www/edit.php +++ b/www/edit.php @@ -22,7 +22,14 @@ $repopo = new Repository_Post($repo); if ($repopo->process($_POST, $_SESSION)) { $anchor = ''; if ($file instanceof File) { - $anchor = '#' . $file->getAnchorName(); + if (isset($repopo->renameMap[$file->getFilename()])) { + $anchor = '#' + . $repo->getFileByName( + $repopo->renameMap[$file->getFilename()] + )->getAnchorName(); + } else { + $anchor = '#' . $file->getAnchorName(); + } } else if ($file === 'newfile' && $repopo->newfileName) { $anchor = '#' . $repo->getFileByName($repopo->newfileName)->getAnchorName(); }