to_id($Match[2]); } if (!$ArticleID) { error('Unable to link alias to an article.'); } $NewAlias = $Alias->convert($_POST['alias']); if ($NewAlias != '') { $DB->query("INSERT INTO wiki_aliases (Alias, ArticleID) VALUES ('$NewAlias', '$ArticleID')"); $Alias->flush(); } header('Location: wiki.php?action=article&id='.$ArticleID); ?>