shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) { $string .= '&Itemid='.$shCurrentItemid; // append current Itemid $Itemid = $shCurrentItemid; shAddToGETVarsList('Itemid', $Itemid); // V 1.2.4.m } if ($sefConfig->shInsertTitleIfNoItemid) $title[] = $sefConfig->shDefaultMenuItemName ? $sefConfig->shDefaultMenuItemName : getMenuTitle($option, null, $shCurrentItemid, null, $shLangName ); $shItemidString = $sefConfig->shAlwaysInsertItemid ? _COM_SEF_SH_ALWAYS_INSERT_ITEMID_PREFIX.$sefConfig->replacement.$shCurrentItemid : ''; } else { // if Itemid in non-sef URL $shItemidString = $sefConfig->shAlwaysInsertItemid ? _COM_SEF_SH_ALWAYS_INSERT_ITEMID_PREFIX.$sefConfig->replacement.$Itemid : ''; } // optional first part of URL, to be set in language file if (!empty($sh_LANG[$shLangIso]['_COM_SEF_SH_REGISTRATION'])) $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_REGISTRATION']; $task = isset($task) ? @$task : null; switch ($task) { case 'register': $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_REGISTER']; break; case 'lostPassword': $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_LOST_PASSWORD']; break; case 'activate': $title[] = $sh_LANG[$shLangIso]['_COM_SEF_SH_ACTIVATE']; break; default: $dosef = false; break; } if (!empty($title)) if (!empty($sefConfig->suffix)) { $title[count($title)-1] .= $sefConfig->suffix; } else { $title[] = '/'; } shRemoveFromGETVarsList('option'); if (!empty($Itemid)) shRemoveFromGETVarsList('Itemid'); shRemoveFromGETVarsList('lang'); if (!empty($task)) shRemoveFromGETVarsList('task'); // ------------------ standard plugin finalize function - don't change --------------------------- if ($dosef){ $string = shFinalizePlugin( $string, $title, $shAppendString, $shItemidString, (isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null), (isset($shLangName) ? @$shLangName : null)); } // ------------------ standard plugin finalize function - don't change --------------------------- ?>