summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-01-10 20:39:44 +0100
committerMichael Hamann <michael@content-space.de>2011-01-10 20:39:44 +0100
commit4a81940267e4278153d3726b605286fd963084ec (patch)
tree16b52a6e0bb14b472e94f6ece346563ae7df8b22 /inc/indexer.php
parentd6a4a040ca66d247bb4c3fc3e67c4ee683c920b2 (diff)
downloadrpg-4a81940267e4278153d3726b605286fd963084ec.tar.gz
rpg-4a81940267e4278153d3726b605286fd963084ec.tar.bz2
Activate the render parameter of p_get_metadata
p_get_metadata has a $render parameter that has been disabled by the restructuring of metadata rendering. This change reactivates it so rendering metadata can be prevented. This is e.g. used in the search and in some plugins like indexmenu that use p_get_first_heading. The default of the parameter has been changed to true as otherwise the new caching structure won't work as almost all calls to p_get_metadata don't set the $render parameter. The indexer call to p_get_first_heading has been changed to set $render to true as in the indexer only one page will be rendered and the title in the index should really be the current one. This does not fix the problem that rendering pages with lots of links or displaying the index can cause the parsing/rendering of a lot of pages.
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 5a361ddc5..943c2a8c4 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -305,7 +305,7 @@ function idx_addPage($page){
}
unset($page_idx); // free memory
- idx_saveIndexLine('title', '', $pid, p_get_first_heading($page, false));
+ idx_saveIndexLine('title', '', $pid, p_get_first_heading($page, true));
$pagewords = array();
// get word usage in page