setQuery($query); $catTitle = $database->loadResult(); } if (isset($id)) $msgID = $id; elseif (isset($replyto)) $msgID = $replyto; else $msgID = null; if ($msgRewrite && !empty($msgID)) { $query = " SELECT `subject` FROM `#__$message_table_suffix` WHERE `id` = $msgID "; $database->setQuery($query); $msgTitle = $database->loadResult(); } } if (empty($task) && isset($func)) { $task = $func; unset($vars['func']); unset($func); } // First subdir if (!empty($option)) { $title[] = getMenuTitle($option, $task, $Itemid); /*$title[] = getMenuTitle($option, @$this_task); $title[] = '/'; unset($vars['option']); if (empty($title)) { $comp_name = str_replace('com_', '', $option); $title = $comp_name; }*/ } // Page /*if (!empty($page)) { $title[] = $page; $title[] = '/'; unset($vars['page']); } // Mode if (!empty($mode)) { $title[] = $mode; $title[] = '/'; unset($vars['mode']); } // Search if (!empty($search_id)) { $title[] = $search_id; $title[] = '/'; unset($vars['search_id']); }*/ // Category if (!empty($catTitle)) { $title[] = $catTitle; unset($vars['catid']); } /* // User if (!empty($u)) { $title[] = $u . $sefConfig->suffix; unset($vars['u']); } // Forum if (!empty($f)) { $title[] = $f; unset($vars['f']); } */ // Topic if (!empty($msgTitle)) { $title[] = (!isset($do) && !isset($func)) ? $msgTitle.$sefConfig->suffix : $msgTitle; unset($vars['id']); } // Func and do if (isset($do) || isset($func)) { if (isset($func)) $oper[] = $func; if (isset($do)) $oper[] = $do; $title[] = join('-', $oper).$sefConfig->suffix; } /* // Mark if (!empty($mark)) { $title[] = 'mark'; $title[] = '/'; $title[] = $mark . $sefConfig->suffix; unset($vars['mark']); } */ if (count($title) > 0) { $string = sef_404::sefGetLocation($string, $title, $task, (isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null), (isset($lang) ? @$lang : null)); } ?>