Index: branches/RC/kernel/units/help/help_tag_processor.php =================================================================== diff -u -N --- branches/RC/kernel/units/help/help_tag_processor.php (revision 8929) +++ branches/RC/kernel/units/help/help_tag_processor.php (revision 0) @@ -1,107 +0,0 @@ -Application->GetVar('h_prefix') ); - $this->Prefix = $rets[0]; - $this->Special = isset($rets[1]) ? $rets[1] : ''; - //$this->Prefix = $this->Application->GetVar('h_prefix'); - - $title_preset_name = replaceModuleSection($this->Application->GetVar('h_title_preset')); - $this->Application->SetVar('h_title_preset', $title_preset_name); - $title_presets = $this->Application->getUnitOption($this->Prefix,'TitlePresets'); - - $format = $title_presets[$title_preset_name]['format']; - $format = preg_replace('/[ ]*( ([\'"]{1}) | ([\(]{1}) ) \#.*\# (?(2) \1 | \) )[ ]*/Ux', ' ', $format); - $title_presets[$title_preset_name]['format'] = $format; - $this->Application->setUnitOption($this->Prefix,'TitlePresets',$title_presets); - - $params['title_preset'] = $title_preset_name; - return parent::SectionTitle($params); - } - - function getModule() - { - $module = $this->Application->GetVar('h_module'); - if (!$module) { - $module = $this->Application->RecallVar('module'); - } - return $module; - } - - function ShowHelp($params) - { - $module = $this->getModule(); - - $module = explode(':', $module); - $module = $module[0]; - - $title_preset = $this->Application->GetVar('h_title_preset'); - - $module_path = $this->Application->findModule('Name', $module, 'Path'); - $help_file = FULL_PATH.'/'.$module_path.'module_help/'.$title_preset.'.txt'; - - if ($this->Application->isDebugMode() && constOn('DBG_EDIT_HELP')) { - global $debugger; - $ret = 'Help file: '.$debugger->getLocalFile($help_file).'