diff --git a/ext_localconf.php b/ext_localconf.php index bb45d97..b157d15 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -18,6 +18,11 @@ // registering sitemap.xml for each hierachy of configuration to realurl (meaning to every website in a multisite installation) if ($extconf['xmlSitemap'] == '1') { + $realurl_hooklist = array( + 'encodeSpURL_postProc', + 'decodeSpURL_preProc', + 'getHost' + ); $realurl = $TYPO3_CONF_VARS['EXTCONF']['realurl']; if (is_array($realurl)) { foreach ($realurl as $host => $cnf) { @@ -25,6 +30,11 @@ if (!is_array($realurl[$host])) { continue; } + + // exclude realurl hooks from configuration + if (in_array($host, $realurl_hooklist)) { + continue; + } if (!isset($realurl[$host]['fileName'])) { $realurl[$host]['fileName'] = array(); diff --git a/modfunc1/class.tx_seobasics_modfunc1.php b/modfunc1/class.tx_seobasics_modfunc1.php index 3422bce..211b699 100644 --- a/modfunc1/class.tx_seobasics_modfunc1.php +++ b/modfunc1/class.tx_seobasics_modfunc1.php @@ -50,7 +50,9 @@ class tx_seobasics_modfunc1 extends t3lib_extobjbase { * @return array */ function init(&$pObj, $conf) { - $pObj->doc->divClass = 'typo3-fullDoc'; + if($pObj->doc instanceof \TYPO3\CMS\Backend\Template\DocumentTemplate) { + $pObj->doc->divClass = 'typo3-fullDoc'; + } // load languages $trans = t3lib_div::makeInstance('t3lib_transl8tools');