mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Add RawDisplayHandler and fix RSS/Atom not producing the correct headers
This commit is contained in:
parent
35203b684d
commit
a405b91e42
5 changed files with 49 additions and 4 deletions
20
classes/display/RawDisplayHandler.php
Normal file
20
classes/display/RawDisplayHandler.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
class RawDisplayHandler
|
||||
{
|
||||
function toDoc($oModule)
|
||||
{
|
||||
$tpl_path = $oModule->getTemplatePath();
|
||||
$tpl_file = $oModule->getTemplateFile();
|
||||
if ($tpl_path && $tpl_file)
|
||||
{
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$output = $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
else
|
||||
{
|
||||
$output = '';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue