diff --git a/extended-toc.php b/extended-toc.php index 23b198d..49910f8 100644 --- a/extended-toc.php +++ b/extended-toc.php @@ -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("//msuU", $this->fullcontent); } - private function exctract_headings($pagenum) { + private function extract_headings($pagenum) { /** find all header tags within the page * */ preg_match_all('/(]*>).*<\/h\2>/msuU', $this->pages[$pagenum - 1], $matches, PREG_SET_ORDER);