permalink($sUrl); if(strncmp($sUrl, BX_DOL_URL_ROOT, strlen(BX_DOL_URL_ROOT)) !== 0) $sUrl = BX_DOL_URL_ROOT . $sUrl; header('Location: ' . $this->_replaceMarkers($sUrl, $aMarkers)); exit; } /** * Replace provided markers in a string, markers are surrounded by '{' and '}' signs, for example: a.php?x={id} * @param $mixed string or array to replace markers in * @param $aMarkers araay or markers for replacement, for example: array ('num' => 123, 'name' => 'Ivan'); * @return string where all markers are replaced */ protected function _replaceMarkers ($mixed, $aMarkers) { return bx_replace_markers($mixed, $aMarkers); } } /** @} */