summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-05-05 21:08:45 +0200
committerMichael Hamann <michael@content-space.de>2013-05-05 21:22:47 +0200
commit9e64ca0debc28da382754236a849287cd6da737c (patch)
treebcfc0230ddc4aef1764b2dbf2c0ba212f5574f55 /inc
parent8fb341d2133fef951e0a7bb959440b93d5ca2e4a (diff)
downloadrpg-9e64ca0debc28da382754236a849287cd6da737c.tar.gz
rpg-9e64ca0debc28da382754236a849287cd6da737c.tar.bz2
Indexer: Fix wrong suffix parameter
The suffix parameter is only for the word length in the word index and not for the metadata index.
Diffstat (limited to 'inc')
-rw-r--r--inc/indexer.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index e518907d7..fdb147334 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -405,10 +405,10 @@ class Doku_Indexer {
unset ($metavalues);
// okay, now we have two entries for the same value. we need to merge them.
- $indexline = $this->getIndexKey($key, '_i', $oldid);
+ $indexline = $this->getIndexKey($key.'_i', '', $oldid);
if ($indexline != '') {
- $newindexline = $this->getIndexKey($key, '_i', $newid);
- $pagekeys = $this->getIndex($key, '_p');
+ $newindexline = $this->getIndexKey($key.'_i', '', $newid);
+ $pagekeys = $this->getIndex($key.'_p', '');
$parts = explode(':', $indexline);
foreach ($parts as $part) {
list($id, $count) = explode('*', $part);
@@ -423,14 +423,14 @@ class Doku_Indexer {
}
$pagekeys[$id] = implode(':', $keyline);
}
- $this->saveIndex($key, '_p', $pagekeys);
+ $this->saveIndex($key.'_p', '', $pagekeys);
unset($pagekeys);
- $this->saveIndexKey($key, '_i', $oldid, '');
- $this->saveIndexKey($key, '_i', $newid, $newindexline);
+ $this->saveIndexKey($key.'_i', '', $oldid, '');
+ $this->saveIndexKey($key.'_i', '', $newid, $newindexline);
}
} else {
$metavalues[$oldid] = $newvalue;
- if (!$this->saveIndex($key, '_w', $metavalues)) {
+ if (!$this->saveIndex($key.'_w', '', $metavalues)) {
$this->unlock();
return false;
}