We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f990f4f commit 97ec928Copy full SHA for 97ec928
1 file changed
plugins/history/history.php
@@ -46,7 +46,8 @@ public function add( $e, $limit )
46
{
47
$keys = array_keys($this->data);
48
$values = array_values($this->data);
49
- $this->data = array_combine(array_splice($keys,$count-1),array_splice($values,$count-1));
+ $offset = $limit / 2;
50
+ $this->data = array_combine(array_splice($keys,0,$offset),array_splice($values,0,$offset));
51
}
52
$this->store();
53
0 commit comments