您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。

19 行
445 B
PHP

<?php
/**
* Filter table info to sane choices. You could add aliases if you like.
* The app uses all of these variations because I'm lazy and just pass label text.
*/
switch ($from) {
case 'accessories':
case 'accessory':
case 'acc':
$from = 'accessories';
break;
case 'consumables':
case 'consumable':
case 'con':
$from = 'consumables';
break;
default:
$from = 'assets';
}