Typo
This commit is contained in:
parent
9c5f86fc7b
commit
3189da9a58
|
@ -420,7 +420,7 @@ if (!class_exists('ExToC')) {
|
||||||
|
|
||||||
/** Extract headings from every pages */
|
/** Extract headings from every pages */
|
||||||
for ($pagenum = 1; $pagenum <= count($this->pages); $pagenum++) {
|
for ($pagenum = 1; $pagenum <= count($this->pages); $pagenum++) {
|
||||||
$headers .= $this->exctract_headings($pagenum);
|
$headers .= $this->extract_headings($pagenum);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $headers;
|
return $headers;
|
||||||
|
@ -431,7 +431,7 @@ if (!class_exists('ExToC')) {
|
||||||
$this->pages = preg_split("/<!--nextpage-->/msuU", $this->fullcontent);
|
$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 * */
|
/** 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);
|
preg_match_all('/(<h([1-6]{1})[^>]*>).*<\/h\2>/msuU', $this->pages[$pagenum - 1], $matches, PREG_SET_ORDER);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue