Add fixtures to sqlite db

This commit is contained in:
Romain Neutron
2013-12-10 10:19:48 +01:00
parent a74ad06ad1
commit 89dc1c5129
97 changed files with 1047 additions and 1908 deletions

View File

@@ -347,7 +347,7 @@ class caption_Field_Value implements cache_cacheableInterface
}
// ---------------- new code ----------------------
$cleanvalue = str_replace(array("[[em]]", "[[/em]]", "'"), array("", "", "'"), $value);
$cleanvalue = str_replace(["[[em]]", "[[/em]]", "'"], ["", "", "'"], $value);
list($term_noacc, $context_noacc) = $this->splitTermAndContext($cleanvalue);
$term_noacc = $this->app['unicode']->remove_indexer_chars($term_noacc);
@@ -379,7 +379,7 @@ class caption_Field_Value implements cache_cacheableInterface
}
}
if ($bestnode) {
list($term, $context) = $this->splitTermAndContext(str_replace(array("[[em]]", "[[/em]]"), array("", ""), $value));
list($term, $context) = $this->splitTermAndContext(str_replace(["[[em]]", "[[/em]]"], ["", ""], $value));
$qjs = $term . ($context ? '['.$context.']' : '');
$value = new ThesaurusValue($bestnode->getAttribute('v'), $this->databox_field, $qjs);