Este commit está contenido en:
Eric van der Vlist 2020-05-09 12:17:03 +02:00
padre 9c5f86fc7b
commit 3189da9a58
Se han modificado 1 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -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);