@@ -526,7 +526,9 @@ public function renderFullTimeMap() {
526526 // calculate the difference
527527 // this counts the revisions BETWEEN, non-inclusive
528528 $ revCount = $ titleObj ->countRevisionsBetween ( $ firstId , $ lastId );
529- $ revCount = $ revCount + 2 ; # for first and last
529+
530+ // for first and last
531+ $ revCount = $ revCount + 2 ;
530532
531533 // if it is greater than limit then get the revision ID prior
532534 // to the lowest one returned by getFullTimeMapData
@@ -576,7 +578,6 @@ public function renderFullTimeMap() {
576578 *
577579 */
578580 public function renderPivotTimeMap () {
579-
580581 global $ wgMementoTimemapNumberOfMementos ;
581582
582583 $ article = $ this ->article ;
@@ -622,7 +623,9 @@ public function renderPivotTimeMap() {
622623 # this counts revisions BETWEEN, non-inclusive
623624 $ revCount = $ titleObj ->countRevisionsBetween (
624625 $ firstId , $ earliestItem ['rev_id ' ] );
625- $ revCount = $ revCount + 2 ; # for first and last
626+
627+ // for first and last
628+ $ revCount = $ revCount + 2 ;
626629
627630 $ timeMapPages = [];
628631
@@ -641,7 +644,9 @@ public function renderPivotTimeMap() {
641644 # this counts revisions BETWEEN, non-inclusive
642645 $ revCount = $ titleObj ->countRevisionsBetween (
643646 $ latestItem ['rev_id ' ], $ lastId );
644- $ revCount = $ revCount + 2 ; # for first and last
647+
648+ // for first and last
649+ $ revCount = $ revCount + 2 ;
645650
646651 # if $revCount is higher, then we've gone over the limit
647652 if ( $ revCount > $ wgMementoTimemapNumberOfMementos ) {
0 commit comments