mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-43385 booktool_print: Remove unused $titles array
This commit is contained in:
parent
8cf64176a7
commit
1a3a3ef2c4
@ -101,7 +101,6 @@ class renderer extends plugin_renderer_base {
|
||||
public function render_print_book_toc($chapters, $book, $cm) {
|
||||
|
||||
$first = true;
|
||||
$titles = array();
|
||||
|
||||
$context = context_module::instance($cm->id);
|
||||
|
||||
@ -150,7 +149,6 @@ class renderer extends plugin_renderer_base {
|
||||
}
|
||||
|
||||
}
|
||||
$titles[$ch->id] = $title;
|
||||
|
||||
if (!$ch->subchapter) {
|
||||
$toc .= html_writer::link(new moodle_url('#ch' . $ch->id), $title,
|
||||
|
Loading…
x
Reference in New Issue
Block a user