Revize 4b851957
Přidáno uživatelem Ondřej Fibich před téměř 8 roky(ů)
application/controllers/email_queues.php | ||
---|---|---|
* @param integer $page
|
||
*/
|
||
public function show_all_unsent(
|
||
$limit_results = 50, $order_by = 'access_time',
|
||
$limit_results = 50, $order_by = 'id',
|
||
$order_by_direction = 'DESC', $page_word = null, $page = 1)
|
||
{
|
||
// access check
|
||
... | ... | |
|
||
// order by check
|
||
if (!in_array(strtolower($order_by), $allowed_order_type))
|
||
$order_by = 'access_time';
|
||
$order_by = 'id';
|
||
|
||
// order by direction check
|
||
if (strtolower($order_by_direction) != 'asc')
|
||
... | ... | |
* @param integer $page
|
||
*/
|
||
public function show_all_sent(
|
||
$limit_results = 50, $order_by = 'access_time',
|
||
$limit_results = 50, $order_by = 'id',
|
||
$order_by_direction = 'DESC', $page_word = null, $page = 1)
|
||
{
|
||
// access check
|
||
... | ... | |
|
||
// order by check
|
||
if (!in_array(strtolower($order_by), $allowed_order_type))
|
||
$order_by = 'access_time';
|
||
$order_by = 'id';
|
||
|
||
// order by direction check
|
||
if (strtolower($order_by_direction) != 'asc')
|
Také k dispozici: Unified diff
Refs #1053: Default sort in emails set to ID which is indexed (previously by access_time), some small improvements in related queries but filters are still very slow.