Here's a working solution, but it ain't very neat:
function _outputToHead( ) {
global $_CB_framework, $ueConfig;
$jVersion = checkJversion();
$customHead = $this->_renderHead();
if ( $this->_headsOutputed && ( $jVersion == 0 ) ) {
return $customHead . "\n";
}
if ( ! $this->_tryCmsDoc( 'addCustomTag', $customHead ) ) {
if ( isset( $ueConfig['xhtmlComply'] ) && $ueConfig['xhtmlComply']
&& ( ( ( $_CB_framework->getUi() == 1 ) || ( ( $jVersion == 0 ) && function_exists( 'josHashPassword' ) ) ) && method_exists( $_CB_framework->_baseFramework, 'addCustomHeadTag' ) ) )
{
// versions 1.0.13 (in fact 1.0.12 too) and above have it in backend too:
$_CB_framework->_baseFramework->addCustomHeadTag( $customHead );
} else {
return $customHead . "\n";
}
}
$this->_headsOutputed = true;
return $customHead . "\n";
}
function _renderCheckOutput( ) {
if ( $this->_headsOutputed ) {
// $customHead = $this->_renderHead();
// echo $customHead; // better late than never...
}
echo $this->_outputToHead();
}
Post edited by: bbalkanski, at: 2010/03/10 11:58
Post edited by: bbalkanski, at: 2010/03/10 12:01