Skip to content

Commit

Permalink
Added search support
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rocky committed Oct 26, 2018
1 parent c62faf4 commit dca6087
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Plugins/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public function __construct()
*/
public function fetch_list()
{
$list = glob($this->path . '*');
$search = '*';
if ($this->request->get('query')) {
$search .= $this->request->get('query') . '*';
}
$list = glob($this->path . $search);

$currentPage = $this->request->get('page');
$perPage = $this->request->get('per_page');
Expand Down

0 comments on commit dca6087

Please sign in to comment.