Skip to content
Snippets Groups Projects
Commit a6a30c1a authored by Esther Brunner's avatar Esther Brunner
Browse files

INDEXER_PAGE_ADD event

darcs-hash:20070227124424-20862-78b4e1863830e88aa9564e6b9c58fa0cdf03d41c.gz
parent 8b3b5ebb
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,12 @@ function idx_getPageWords($page){
$stopwords = array();
}
$body = rawWiki($page);
$body = '';
$evt = new Doku_Event('INDEXER_PAGE_ADD', array($page, $body));
if ($evt->advise_before()) $body .= rawWiki($page);
$evt->advise_after();
unset($evt);
$body = strtr($body, "\r\n\t", ' ');
$tokens = explode(' ', $body);
$tokens = array_count_values($tokens); // count the frequency of each token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment