<?php
class HdXoopsTplHook extends XCube_ActionFilter
{
function preBlockFilter()
{
$this->mRoot->mDelegateManager->add( 'XoopsTpl.New' , array( $this , 'hook' ) ) ;
}
function hook( &$xoopsTpl )
{
global $xoopsConfig ;
array_unshift( $xoopsTpl->plugins_dir , XOOPS_TRUST_PATH.'/libs/smartyplugins' ) ;
$compile_id = $xoopsConfig['template_set'] . '-' . $xoopsConfig['theme_set'] ;
$xoopsTpl->compile_id = $compile_id ;
$xoopsTpl->_compile_id = $compile_id ;
}
}
?>