Commit 964fbbb7 authored by Melissa Draper's avatar Melissa Draper
Browse files

Add sorting for spam traps (bug #702264)



Change-Id: I88deb431234cc70e7d5b79d0ba2c8bd3c20ac48d
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 25978130
......@@ -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