0
@@ -141,9 +141,6 @@ class Smarty_CMS extends Smarty {
0
function module_db_template($tpl_name, &$tpl_source, &$smarty_obj)
0
- $log =& LoggerManager::getLogger('content.functions.php');
0
- $log->debug('Starting module_db_template');
0
@@ -347,16 +344,12 @@ class Smarty_CMS extends Smarty {
0
function template_get_template($tpl_name, &$tpl_source, &$smarty_obj)
0
- $log =& LoggerManager::getLogger('content.functions.php');
0
- $log->debug('Starting template_get_template');
0
$config = $gCms->config;
0
if (get_site_preference('enablesitedownmessage') == "1")
0
$tpl_source = get_site_preference('sitedownmessage');
0
- $log->debug('Site down. Leaving template_get_template');
0
@@ -366,7 +359,6 @@ class Smarty_CMS extends Smarty {
0
if ($tpl_name == 'notemplate')
0
$tpl_source = '{content}';
0
- $log->debug('No Template. Leaving template_get_template');
0
@@ -402,32 +394,25 @@ class Smarty_CMS extends Smarty {
0
$tpl_source = ereg_replace("\{\/?php\}", "", $tpl_source);
0
- $log->debug('Template Found. Leaving template_get_template');
0
- $log->warn('No Template Found. Leaving template_get_template');
0
function template_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj)
0
- $log =& LoggerManager::getLogger('content.functions.php');
0
- $log->debug('Starting template_get_timestamp');
0
if (get_site_preference('enablesitedownmessage') == "1")
0
$tpl_timestamp = time();
0
- $log->debug('Site down. Leaving template_get_timestamp');
0
else if (isset($_GET['id']) && isset($_GET[$_GET['id'].'showtemplate']) && $_GET[$_GET['id'].'showtemplate'] == 'false')
0
$tpl_timestamp = time();
0
- $log->debug('No template needed. Leaving template_get_timestamp');
0
@@ -435,16 +420,12 @@ class Smarty_CMS extends Smarty {
0
$pageinfo = &$gCms->variables['pageinfo'];
0
$tpl_timestamp = $pageinfo->template_modified_date;
0
- $log->debug('Template found. Leaving template_get_timestamp');
0
function content_get_template($tpl_name, &$tpl_source, &$smarty_obj)
0
- $log =& LoggerManager::getLogger('content.functions.php');
0
- $log->debug('Starting content_get_template');
0
$pageinfo = &$gCms->variables['pageinfo'];
0
@@ -454,7 +435,6 @@ class Smarty_CMS extends Smarty {
0
#We've a custom error message... return it here
0
header("HTTP/1.0 404 Not Found");
0
$tpl_source = get_site_preference('custom404');
0
- $log->debug('Custom 404 message. Leaving content_get_template');
0
@@ -468,9 +448,7 @@ class Smarty_CMS extends Smarty {
0
$contentobj->GetAdditionalContentBlocks();
0
- $log->debug('Running Show() now');
0
$tpl_source = $contentobj->Show($tpl_name);
0
- $log->debug('Done running Show()');
0
#Perform the content data callback
0
@@ -500,19 +478,14 @@ class Smarty_CMS extends Smarty {
0
$tpl_source = ereg_replace("\{\/?php\}", "", $tpl_source);
0
- $log->debug('Content found. Leaving content_get_template');
0
- $log->warn('Content not found. Leaving content_get_template');
0
function content_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj)
0
- $log =& LoggerManager::getLogger('content.functions.php');
0
- $log->debug('Starting content_get_timestamp');
0
$pageinfo = $gCms->variables['pageinfo'];
0
@@ -533,7 +506,6 @@ class Smarty_CMS extends Smarty {
0
$tpl_timestamp = time();
0
- $log->debug('Leaving content_get_timestamp');
0
@@ -543,9 +515,6 @@ class Smarty_CMS extends Smarty {
0
$pageinfo =& $gCms->variables['pageinfo'];
0
$config = $gCms->config;
0
- $log =& LoggerManager::getLogger('content.functions.php');
0
- $log->debug('Starting module_get_template');
0
#Run the execute_user function and replace {content} with it's output
0
if (isset($gCms->modules[$tpl_name]))
0
@@ -586,7 +555,6 @@ class Smarty_CMS extends Smarty {
0
- $log->debug("Encoding: " . (isset($line['encoding']) && $line['encoding'] != ''?$line['encoding']:get_encoding()));
0
header("Content-Type: ".$gCms->variables['content-type']."; charset=" . (isset($line['encoding']) && $line['encoding'] != ''?$line['encoding']:get_encoding()));
0
if (isset($gCms->variables['content-filename']) && $gCms->variables['content-filename'] != '')
Comments
No one has commented yet.