Index: branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php =================================================================== diff -u -r5303 -r5708 --- branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php (.../help_tag_processor.php) (revision 5303) +++ branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php (.../help_tag_processor.php) (revision 5708) @@ -23,28 +23,32 @@ return parent::SectionTitle($params); } - function ShowHelp($params) + function getModule() { $module = $this->Application->GetVar('h_module'); - if (!$module) $module = $this->Application->RecallVar('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'); - $sql = 'SELECT Path FROM '.TABLE_PREFIX.'Modules WHERE LOWER(Name)='.$this->Conn->qstr( strtolower($module) ); - $module_path = $this->Conn->GetOne($sql); - + $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') ) - { + if ($this->Application->isDebugMode() && constOn('DBG_EDIT_HELP')) { global $debugger; $ret = 'Help file: '.$debugger->getLocalFile($help_file).'
'.$section[1].'.txt '; + } + if( file_exists($topic_path) ) echo $help_data; else Index: branches/unlabeled/unlabeled-1.6.2/kernel/admin_templates/help.tpl =================================================================== diff -u -r5561 -r5708 --- branches/unlabeled/unlabeled-1.6.2/kernel/admin_templates/help.tpl (.../help.tpl) (revision 5561) +++ branches/unlabeled/unlabeled-1.6.2/kernel/admin_templates/help.tpl (.../help.tpl) (revision 5708) @@ -6,7 +6,7 @@
|