This commit is contained in:
Eric van der Vlist 2020-05-09 12:17:03 +02:00
parent 9c5f86fc7b
commit 3189da9a58
1 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ if (!class_exists('ExToC')) {
/** Extract headings from every pages */
for ($pagenum = 1; $pagenum <= count($this->pages); $pagenum++) {
$headers .= $this->exctract_headings($pagenum);
$headers .= $this->extract_headings($pagenum);
}
return $headers;
@ -431,7 +431,7 @@ if (!class_exists('ExToC')) {
$this->pages = preg_split("/<!--nextpage-->/msuU", $this->fullcontent);
}
private function exctract_headings($pagenum) {
private function extract_headings($pagenum) {
/** find all header tags within the page * */
preg_match_all('/(<h([1-6]{1})[^>]*>).*<\/h\2>/msuU', $this->pages[$pagenum - 1], $matches, PREG_SET_ORDER);