|
@@ 956-962 (lines=7) @@
|
| 953 |
|
|
| 954 |
|
public function __viewNew() |
| 955 |
|
{ |
| 956 |
|
if (!$section_id = SectionManager::fetchIDFromHandle($this->_context['section_handle'])) { |
| 957 |
|
Administration::instance()->throwCustomError( |
| 958 |
|
__('The Section, %s, could not be found.', array('<code>' . $this->_context['section_handle'] . '</code>')), |
| 959 |
|
__('Unknown Section'), |
| 960 |
|
Page::HTTP_STATUS_NOT_FOUND |
| 961 |
|
); |
| 962 |
|
} |
| 963 |
|
|
| 964 |
|
$section = SectionManager::fetch($section_id); |
| 965 |
|
|
|
@@ 1175-1181 (lines=7) @@
|
| 1172 |
|
|
| 1173 |
|
public function __viewEdit() |
| 1174 |
|
{ |
| 1175 |
|
if (!$section_id = SectionManager::fetchIDFromHandle($this->_context['section_handle'])) { |
| 1176 |
|
Administration::instance()->throwCustomError( |
| 1177 |
|
__('The Section, %s, could not be found.', array('<code>' . $this->_context['section_handle'] . '</code>')), |
| 1178 |
|
__('Unknown Section'), |
| 1179 |
|
Page::HTTP_STATUS_NOT_FOUND |
| 1180 |
|
); |
| 1181 |
|
} |
| 1182 |
|
|
| 1183 |
|
$section = SectionManager::fetch($section_id); |
| 1184 |
|
$entry_id = intval($this->_context['entry_id']); |