Commit f5a920e6 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Add sorting for spam traps (bug #702264)"

parents 7f0b0d08 964fbbb7
......@@ -36,6 +36,11 @@ function available_spam_traps() {
$results[strtolower($name[1])] = get_string($name[1], 'admin');
// Addition of new traps will involve updating this ordering array.
$order = array(1,3,2);
array_multisort($order, $results);
return $results;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment