diff --git a/bookquiz/toc.php b/bookquiz/toc.php index 9f146df..8c59d67 100755 --- a/bookquiz/toc.php +++ b/bookquiz/toc.php @@ -132,7 +132,7 @@ if ($print) { } else { if (array_key_exists( $ch->id, $okchapters)) { $toc .= ''.$title.''; + .$id.'&chapterid='.$ch->id.'">'.$title.''; } else { $toc .= htmlspecialchars($title); } diff --git a/pagelib.php b/pagelib.php index 90b93f9..e3e566a 100755 --- a/pagelib.php +++ b/pagelib.php @@ -44,7 +44,7 @@ class page_game extends page_generic_activity { $this->init_full(); $replacements = array( '%fullname%' => format_string($this->activityrecord->name) - ) + ); foreach ($replacements as $search => $replace) { $title = str_replace($search, $replace, $title); }