Skip to content

Conversation

@steffenk
Copy link

…in debug mode


namespace GeorgRinger\BackendDebug\Utility;

/***************************************************************
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong header, this is not part of the core

protected function getCssCode()
{
return <<<EOT
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just check the $GLOBALS['TYPO3_CONF_VARS']['BE']['debug'] there and include the CSS if set, no need to use additional JS

*
* @return string
*/
protected function getContextCode()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove, see below

'className' => \GeorgRinger\BackendDebug\Xclass\SelectSingleElement::class,
];

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = 'GeorgRinger\BackendDebug\Utility\PageRenderer->setup';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ::class for the class and please don't call it PageRenderer but place it to BackendDebug\Hooks\PageRendererHook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants