Sorry.
It's a mistake.
// if template file exists, parse it.
if( file_exists( "$mymodpath/templates/blocks/tinycontent_content_block.html" ) ) {
$myts =& TinyDTextSanitizer::getInstance() ;
$tpl = new XoopsTpl();
$tpl->assign( array(
'storyid' => $options[1] ,
'mymoddir' => XOOPS_URL . "/modules/$mydirname" ,
'title' => $myts->makeTboxData4Show( $title ) ,
'content' => $content
) ) ;
$block['content'] =& $tpl->fetch( "file:$mymodpath/templates/blocks/tinycontent_content_block.html" ) ;
} else {
The next TinyD assigns $mymoddir.