@@ 36-41 (lines=6) @@ | ||
33 | * Builds the content view |
|
34 | */ |
|
35 | public function view() { |
|
36 | if (class_exists('FLang')) { |
|
37 | try { |
|
38 | FLang::setMainLang(Lang::get()); |
|
39 | FLang::setLangCode(Lang::get(), ''); |
|
40 | } catch (Exception $ex) {} |
|
41 | } |
|
42 | // _context[0] => entry values |
|
43 | // _context[1] => fieldId |
|
44 | if (!is_array($this->_context) || empty($this->_context) || $this->_context[0] === 'null') { |
@@ 13-18 (lines=6) @@ | ||
10 | { |
|
11 | public function view() |
|
12 | { |
|
13 | if (class_exists('FLang')) { |
|
14 | try { |
|
15 | FLang::setMainLang(Lang::get()); |
|
16 | FLang::setLangCode(Lang::get(), ''); |
|
17 | } catch (Exception $ex) { } |
|
18 | } |
|
19 | ||
20 | $section = General::sanitize($this->_context[0]); |
|
21 | $sectionId = SectionManager::fetchIDFromHandle($section); |