Index: trunk/core/kernel/processors/main_processor.php =================================================================== diff -u -N -r8099 -r8178 --- trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 8099) +++ trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 8178) @@ -132,18 +132,18 @@ { $pass_category = true; $category_id = $this->Application->GetVar('m_cat_id'); - + if ($category_id > 0) { $category = $this->Application->recallObject('c'); /* @var $category kDBItem */ - + $t = $this->Application->GetVar('t'); if (preg_match('/Content\/'.preg_quote($t, '/').'/i', $category->GetDBField('NamedParentPath'))) { // category name matches template name -> Proj-CMS/In-Edit tricks $pass_category = false; } } - + $params['pass'] = 'all,m'; if ($pass_category) { $params['pass_category'] = 1; @@ -964,7 +964,7 @@ { $esender =& $application->recallObject('EmailSender'.(isset($params['special']) ? '.'.$params['special'] : '')); /* @var $esender kEmailSendingHelper */ - + $path = FULL_PATH.'/'.$params['path']; if (file_exists($path)) { $esender->AddAttachment($path); @@ -981,4 +981,9 @@ true ); } + + function SID($params) + { + return $this->Application->GetSID(); + } }