Δημοσιεύτηκε: 22 Σεπ 2014, 12:20
- Μορφοποιημένος Κώδικας: Επιλογή όλων
-
// View body data
$cached['body'] = $data;
// Document head data
if ($loptions['nohead'] != 1 && method_exists($document, 'getHeadData'))
{
if ($loptions['modulemode'] == 1)
{
$headnow = $document->getHeadData();
$unset = array('title', 'description', 'link', 'links', 'metaTags');
foreach ($unset as $un)
{
unset($headnow[$un]);
unset($options['headerbefore'][$un]);
}
$cached['head'] = array();
// only store what this module has added
foreach ($headnow as $now => $value)
{
$newvalue = array_diff_assoc($headnow[$now], isset($options['headerbefore'][$now]) ? $options['headerbefore'][$now] :array());
if (!empty($newvalue))
{
$cached['head'][$now] = $newvalue;
}
}
}
else
{
$cached['head'] = $document->getHeadData();
}
}
// Pathway data
H γραμμή 578 είναι η $options['headerbefore'][$now] :array());
Μπορεί να βοηθήσει κάποιος;
Ευχαριστ'ω