See the file Glossary.php, function insertItemsIntoContent, row 122
Your code:
Code: Select all
$item['item'] = preg_quote($item['item'], '/');
Code: Select all
$item['item'] = preg_quote('/', $item['item']);
Moderator: Thorsten
Code: Select all
$item['item'] = preg_quote($item['item'], '/');
Code: Select all
$item['item'] = preg_quote('/', $item['item']);
What do you mean?!ragtek wrote:hi
with this code its for me not working
I downloaded this version but it also contains errors. For example, if array elements from 3 to 5 does not exist.Thorsten wrote:Hi,
please try the current stable CVS snapshot. It's fixed there.
bye
Thorsten
Code: Select all
function setAcronyms($matches)
{
$itemAsAttrName = $matches[1];
$itemInAttrValue = $matches[2]; // $matches[3] is the attribute name
$prefix = $matches[4];
$item = $matches[5];
$postfix = $matches[6];
if (!empty($item)) {
return '<acronym class="glossary" title="'.$this->definition.'">'.$prefix.$item.$postfix.'</acronym>';
}
// Fallback: the original matched string
return $matches[0];
}
Code: Select all
function setAcronyms($matches)
{
$itemAsAttrName = $matches[1];
$itemInAttrValue = $matches[2]; // $matches[3] is the attribute name
if ( isset ( $matches[4] ) ) {
$prefix = $matches[4];
}
if ( isset ( $matches[5] ) ) {
$item = $matches[5];
}
if ( isset ( $matches[6] ) ) {
$postfix = $matches[6];
}
if (!empty($item)) {
return '<acronym class="glossary" title="'.$this->definition.'">'.$prefix.$item.$postfix.'</acronym>';
}
// Fallback: the original matched string
return $matches[0];
}
Just open one FAQ... and it is visible ONLY if DEBUG flag is set to TRUE.Thorsten wrote:Hi,
how can I reproduce this? What did you entered?
bye
Thorsten
For possible fix see:Bambino wrote:There is a bug in glossary class. It cause of dissapiering of FAQ text and subject.
See the file Glossary.php, function insertItemsIntoContent, row 122