Skip to content

Commit

Permalink
fix fatal error
Browse files Browse the repository at this point in the history
Related #85
  • Loading branch information
NovemLinguae committed Apr 30, 2024
1 parent 17ce138 commit 05d171b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Task1FGTC/src/FGTCSteps.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private function addToUserspaceLog() {
$editCount = $this->wapi->getEditCount();
$mostRecentRevisionTimestamp = $this->wapi->getMostRecentRevisionTimestamp();
// add some seconds, to fix #85 Task1Log "diff" link is off by one
$mostRecentRevisionTimestamp + 15;
$mostRecentRevisionTimestamp = (int)$mostRecentRevisionTimestamp + 15;
$diffURL = "https://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=$mostRecentRevisionTimestamp&target=NovemBot&limit=$editCount";

$this->logPageWikicode = $this->wapi->getpage( $this->logPageTitle );
Expand Down
1 change: 1 addition & 0 deletions Task1FGTC/src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
$listOfPings = $wapi->getUnreadPings();
$listOfPings = $listOfPings['query']['notifications']['list'];
$pagesToPromote = [];
// this will detect any unread ping, both red/new ones and gray/old ones
foreach ( $listOfPings as $key => $value ) {
// make sure pinger is on allow list
$pingSender = $value['agent']['name'];
Expand Down

0 comments on commit 05d171b

Please sign in to comment.