Skip to content

Commit

Permalink
Move DNAU to before {{rfc}} template
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Jan 25, 2021
1 parent 51f2cb0 commit 18de3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rfcbot.php
Expand Up @@ -167,7 +167,7 @@ function generateRfcId ($tries=0) {
foreach ($matches[0] as $match) {
if (strpos($match, "|rfcid=") === false) { // if the rfcid is not found within an RFC template
$rfcid = generateRfcId(); # a seven-character random string with capital letters and digits
$content = str_replace($match, $match . "|rfcid=" . $rfcid . "}}{{subst:DNAU|5|weeks}}", $content);
$content = str_replace($match, "{{subst:DNAU|5|weeks}}\n" . $match . "|rfcid=" . $rfcid . "}}", $content);
$content = str_replace("}}|rfcid", "|rfcid", $content);
echo "Editing [[$page]]\n";
$page->edit($content,"Adding RFC ID.");
Expand Down

0 comments on commit 18de3db

Please sign in to comment.