Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Only set divClass if is instance of \TYPO3\CMS\Backend\Template... #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,23 @@

// 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) {
// we won't do anything with string pointer (e.g. example.org => www.example.org)
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();
Expand Down
4 changes: 3 additions & 1 deletion modfunc1/class.tx_seobasics_modfunc1.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down