| @@ -64,16 +64,13 @@ | ||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | // vars |
| 67 | 67 | $choices = array(); |
| 68 | - $items = $this->module->get_raw_items(); | |
| 69 | - | |
| 70 | - if($items){ | |
| 71 | - foreach($items as $item){ | |
| 72 | - | |
| 73 | - $choices[ $item['name'] ] = esc_html($item['label']); | |
| 74 | - | |
| 75 | - } | |
| 68 | + $items = $this->module->get_items('db'); | |
| 69 | + | |
| 70 | + // loop db items | |
| 71 | + foreach($items as $item){ | |
| 72 | + $choices[ $item['name'] ] = esc_html($item['label']); | |
| 76 | 73 | } |
| 77 | 74 | |
| 78 | 75 | ?> |
| 79 | 76 | |
| @@ -453,13 +450,13 @@ | ||
| 453 | 450 | $data = array(); |
| 454 | 451 | |
| 455 | 452 | foreach($keys as $name){ |
| 456 | 453 | |
| 457 | - // get item | |
| 458 | - $item = $this->module->get_raw_item($name); | |
| 454 | + // get db item | |
| 455 | + $db_item = $this->module->get_item($name, 'db'); | |
| 459 | 456 | |
| 460 | - if($item){ | |
| 461 | - $data[] = $item; | |
| 457 | + if($db_item){ | |
| 458 | + $data[] = $db_item; | |
| 462 | 459 | } |
| 463 | 460 | |
| 464 | 461 | } |
| 465 | 462 | |