Permalink
Browse files

list top ten edits (via https://de.wikipedia.org/w/index.php?title=Wi…

  • Loading branch information...
FlominatorTM committed Nov 22, 2016
1 parent 2c5165a commit ec74ce6179002138818a5c7d0dd065d0ce8879a1
Showing with 3 additions and 4 deletions.
  1. +3 −4 wbw_rating.php
@@ -1,8 +1,7 @@
<?php header('Content-Type: text/html; charset=utf-8'); ?>
<?php
<?php header('Content-Type: text/html; charset=utf-8');
$is_debug = ($_REQUEST['debug']=="on" || $_REQUEST['debug']=="true" );
const NUMBER_OF_TOP_IMPROVEMENTS = 10;
$oldid = $_REQUEST['oldid']+0;
include("shared_inc/wiki_functions.inc.php");
$server = "$lang.$project.org";
@@ -223,7 +222,7 @@ function sort_and_print_biggest_improvements($allImprovements)
echo "<ol>";
arsort($allImprovements, SORT_NUMERIC);
$keys = array_keys($allImprovements);
for($i=0;$i<5;$i++)
for($i=0;$i<NUMBER_OF_TOP_IMPROVEMENTS;$i++)
{
echo "<li>". $keys[$i] .' ('.$allImprovements[$keys[$i]].")</li>";
}

0 comments on commit ec74ce6

Please sign in to comment.