dies passiert nur bei links, welche auf artikel in der eigenen phpmyfaq-installation verlinken.
die links sind in der Datenbank korrekt, und werden nur bei der frontend-ausgabe abgeändert.
ich habe nicht viel ahnung von php, aber ich vermute der link aus der datenbank wird in der artikel.php irgendwo zwischen zeile 109 und zeile 143 abgeändert:
Code: Select all
// Hack: Apply the new SEO schema to those HTML anchors to
// other faq records (Internal Links) added with WYSIWYG Editor:
// href="index.php?action=artikel&cat=NNN&id=MMM&artlang=XYZ"
// Search for href attribute links
$oLnk->resetPool();
$oLnk->parse_string($content);
$fixedContent = $content;
// Search for href attributes only
if (isset($oLnk->urlpool['href'])) {
$linkArray = array_unique($oLnk->urlpool['href']);
foreach ($linkArray as $_url) {
if (!(strpos($_url, 'index.php?action=artikel') === false)) {
// Get the Faq link title
preg_match('/id=([\d]+)/ism', $_url, $matches);
$_id = $matches[1];
preg_match('/artlang=([a-z\-]+)$/ism', $_url, $matches);
$_lang = $matches[1];
$_title = $faq->getRecordTitle($_id, false);
$_link = substr($_url, 9);
// Move the link to XHTML
if (strpos($_url, '&') === false) {
$_link = str_replace('&', '&', $_link);
}
$oLink = new PMF_Link(PMF_Link::getSystemRelativeUri().$_link);
$oLink->itemTitle = $_title;
$oLink->tooltip = PMF_htmlentities($_title, ENT_QUOTES, $PMF_LANG['metaCharset']);
$newFaqPath = $oLink->toString();
$fixedContent = str_replace($_url, $newFaqPath, $fixedContent);
}
}
}
$content = str_replace('href="#','href="index.php?action=artikel&lang='.$LANGCODE.'&id='.$record_id.'#', $fixedContent);