18 require_once SQ_CORE_PACKAGE_PATH.
'/page/page_edit_fns.inc';
41 parent::__construct();
59 $bodycopy_link = $GLOBALS[
'SQ_SYSTEM']->am->getLinks($asset->id, SQ_LINK_TYPE_2,
'bodycopy', TRUE,
'major', NULL,
'1',
'1');
61 if (!empty($bodycopy_link)) {
62 $bodycopy = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($bodycopy_link[0][
'minorid'],
'bodycopy');
64 if (is_null($bodycopy)) {
65 trigger_localised_error(
'CORE0016', E_USER_ERROR, $asset->name);
70 $o->
setRedirect($bodycopy->getBackendHref(
'contents'));
74 $_SESSION[
'sq_nav_history'][(count($_SESSION[
'sq_nav_history']) - 1)][
'screen'] =
'details';