Browse Source

Changed number of pastes to index number to include removed pastes.

pull/24/head
Teknikode 5 years ago
parent
commit
2b3cc55a46
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      transparency/main.php

+ 3
- 3
transparency/main.php View File

@@ -110,7 +110,7 @@
array_push($upload_list, $upload);
}
$pastes = $db->select('paste', "1=?", array("1"));
$pastes = $db->select('paste', "1=? LIMIT 1 ORDER BY `id` DESC", array("1"));
$paste_list = array();
foreach ($pastes as $paste)
@@ -161,7 +161,7 @@
</div>
<div class="col-sm-6">
<h3>Pastes</h3>
<p>Number of Pastes: <?php echo count($paste_list); ?></p>
<p>Number of Pastes: <?php echo $paste_list['id']; ?></p>
</div>
</div>
<div class="row">
@@ -491,4 +491,4 @@
<br />
</div>
</div>
</div>
</div>

Loading…
Cancel
Save