Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kolab
roundcube-plugins
Commits
79d71d07
Commit
79d71d07
authored
Nov 09, 2012
by
Thomas Bruederli
Browse files
Always use Kolab format v3 for caching
parent
826f3f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/libkolab/lib/kolab_storage_cache.php
View file @
79d71d07
...
...
@@ -534,7 +534,7 @@ class kolab_storage_cache
}
if
(
$object
[
'_formatobj'
])
{
$sql_data
[
'xml'
]
=
preg_replace
(
'!(</?[a-z0-9:-]+>)[\n\r\t\s]+!ms'
,
'$1'
,
(
string
)
$object
[
'_formatobj'
]
->
write
());
$sql_data
[
'xml'
]
=
preg_replace
(
'!(</?[a-z0-9:-]+>)[\n\r\t\s]+!ms'
,
'$1'
,
(
string
)
$object
[
'_formatobj'
]
->
write
(
3.0
));
$sql_data
[
'tags'
]
=
' '
.
join
(
' '
,
$object
[
'_formatobj'
]
->
get_tags
())
.
' '
;
// pad with spaces for strict/prefix search
$sql_data
[
'words'
]
=
' '
.
join
(
' '
,
$object
[
'_formatobj'
]
->
get_words
())
.
' '
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment