Skip to content

Commit

Permalink
Merge pull request #1404 from ms609/GlazerMann-patch-11
Browse files Browse the repository at this point in the history
VERY HIGH PRIORITY:  Fixes to page() make this check not needed anymore
  • Loading branch information
Martin R. Smith committed Mar 4, 2019
2 parents 70ff2e4 + 16770fa commit c68f26b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gadgetapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
//Expand text from postvars
$page = new Page();
$page->parse_text($originalText);
if ($page->expand_text()) {
$newText = $page->parsed_text();
} else {
$newText = $orignalText; // something went wrong
}
$page->expand_text();
$newText = $page->parsed_text();
if ($newText == "") $newText = $originalText; // Something went very wrong

//Modify edit summary to identify bot-assisted edits
if ($newText !== $originalText) {
Expand Down

0 comments on commit c68f26b

Please sign in to comment.