Rev 316 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 316 | Rev 360 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | 25 | ||
26 | public function natOrder($fieldname, $order='asc'): string { |
26 | public function natOrder($fieldname, $order='asc'): string { |
27 | 27 | ||
28 | $order = strtolower($order); |
28 | $order = strtolower($order); |
29 | if (($order != 'asc') && ($order != 'desc')) { |
29 | if (($order != 'asc') && ($order != 'desc')) { |
30 | throw new OIDplusException("Invalid order '$order' (needs to be 'asc' or 'desc')"); |
30 | throw new OIDplusException(_L('Invalid order "%1" (needs to be "asc" or "desc")',$order)); |
31 | } |
31 | } |
32 | 32 | ||
33 | $out = array(); |
33 | $out = array(); |
34 | 34 | ||
35 | // If the SQLite database is accessed through the SQLite3 plugin, |
35 | // If the SQLite database is accessed through the SQLite3 plugin, |