|
@@ 977-983 (lines=7) @@
|
| 974 |
|
|
| 975 |
|
public function __viewNew() |
| 976 |
|
{ |
| 977 |
|
if (!$section_id = SectionManager::fetchIDFromHandle($this->_context['section_handle'])) { |
| 978 |
|
Administration::instance()->throwCustomError( |
| 979 |
|
__('The Section, %s, could not be found.', array('<code>' . $this->_context['section_handle'] . '</code>')), |
| 980 |
|
__('Unknown Section'), |
| 981 |
|
Page::HTTP_STATUS_NOT_FOUND |
| 982 |
|
); |
| 983 |
|
} |
| 984 |
|
|
| 985 |
|
$section = SectionManager::fetch($section_id); |
| 986 |
|
|
|
@@ 1193-1199 (lines=7) @@
|
| 1190 |
|
|
| 1191 |
|
public function __viewEdit() |
| 1192 |
|
{ |
| 1193 |
|
if (!$section_id = SectionManager::fetchIDFromHandle($this->_context['section_handle'])) { |
| 1194 |
|
Administration::instance()->throwCustomError( |
| 1195 |
|
__('The Section, %s, could not be found.', array('<code>' . $this->_context['section_handle'] . '</code>')), |
| 1196 |
|
__('Unknown Section'), |
| 1197 |
|
Page::HTTP_STATUS_NOT_FOUND |
| 1198 |
|
); |
| 1199 |
|
} |
| 1200 |
|
|
| 1201 |
|
$section = SectionManager::fetch($section_id); |
| 1202 |
|
$entry_id = intval($this->_context['entry_id']); |