implemented random button

This commit is contained in:
Thomas Citharel
2014-12-07 23:36:35 +01:00
parent 9c55ed0923
commit 311baf86be
6 changed files with 18 additions and 3 deletions

View File

@ -445,6 +445,7 @@ class Poche
$tpl_vars['entries'] = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit(), $id);
$tpl_vars['page_links'] = $page_links;
$tpl_vars['nb_results'] = $count;
$tpl_vars['random'] = rand(1,$count);
}
Tools::logm('display ' . $view . ' view');
break;
@ -812,4 +813,4 @@ class Poche
}
}
}