1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Search;
13
14 class ConfigOperation extends \Icybee\ConfigOperation
15 {
16 protected function process()
17 {
18 global $core;
19
20 $request = $this->request;
21
22 $key = $this->module->flat_id . '.scope';
23 $scope = null;
24
25 if (isset($request['local'][$key]))
26 {
27 $scope = implode(',', array_keys($request['local'][$key]));
28
29 unset($request->params['local'][$key]);
30 }
31
32 $core->site->metas[$key] = $scope;
33
34 return parent::process();
35 }
36 }