| @@ 46-56 (lines=11) @@ | ||
| 43 | $app = JFactory::getApplication(); |
|
| 44 | $data = $app->input->get('filters', array(), 'array'); |
|
| 45 | ||
| 46 | if (empty($data)) |
|
| 47 | { |
|
| 48 | $data = array(); |
|
| 49 | $data['select'] = $app->getUserState('com_localise.select'); |
|
| 50 | $data['search'] = $app->getUserState('com_localise.languages.search'); |
|
| 51 | } |
|
| 52 | else |
|
| 53 | { |
|
| 54 | $app->setUserState('com_localise.select', $data['select']); |
|
| 55 | $app->setUserState('com_localise.languages.search', $data['search']); |
|
| 56 | } |
|
| 57 | ||
| 58 | $this->setState('filter.search', isset($data['search']['expr']) ? $data['search']['expr'] : ''); |
|
| 59 | ||
| @@ 71-81 (lines=11) @@ | ||
| 68 | $app = JFactory::getApplication(); |
|
| 69 | $data = $app->input->get('filters', array(), 'array'); |
|
| 70 | ||
| 71 | if (empty($data)) |
|
| 72 | { |
|
| 73 | $data = array(); |
|
| 74 | $data['select'] = $app->getUserState('com_localise.select'); |
|
| 75 | $data['search'] = $app->getUserState('com_localise.translations.search'); |
|
| 76 | } |
|
| 77 | else |
|
| 78 | { |
|
| 79 | $app->setUserState('com_localise.select', $data['select']); |
|
| 80 | $app->setUserState('com_localise.translations.search', isset($data['search']) ? $data['search'] : ''); |
|
| 81 | } |
|
| 82 | ||
| 83 | $this->setState( |
|
| 84 | 'filter.search', |
|