diff --git a/scripts/inject-chapter-navigation-footer b/scripts/inject-chapter-navigation-footer index 3981eda5..3de87fd0 100755 --- a/scripts/inject-chapter-navigation-footer +++ b/scripts/inject-chapter-navigation-footer @@ -33,8 +33,8 @@ if($toc){ $fileName = $epubDirectory . '/' . $chapterLinks[$i]->Path . '.xhtml'; $chapter = file_get_contents($fileName); // Inject the navigation footer. - $previousLink = $previousObj ? sprintf('Previous: %s', $bookUrl . '/' . $previousObj->Path, htmlspecialchars($previousObj->Name)) : ''; - $nextLink = $nextObj ? sprintf('Next: %s', $bookUrl . '/' . $nextObj->Path, htmlspecialchars($nextObj->Name)) : ''; + $previousLink = $previousObj ? sprintf('Previous: %s', $bookUrl . '/' . $previousObj->Path, htmlspecialchars($previousObj->Name)) : ''; + $nextLink = $nextObj ? sprintf('Next: %s', $bookUrl . '/' . $nextObj->Path, htmlspecialchars($nextObj->Name)) : ''; $footer = sprintf('', $previousLink, $nextLink); $chapter = str_replace('', $footer . '', $chapter); file_put_contents($fileName, $chapter);