public function history() { if (system::url(2) == 0) { system::redirect('/subscription'); } if ($obj = ormObjects::get(system::url(2))) { ui::setBackButton('/subscription'); ui::setNaviBar(lang::right('subscribe_history')); ui::setHeader($obj->name); return ui::getHistoryTable($obj->id); } system::redirect('/subscription'); }
public function history() { if (system::url(2) == 0) { system::redirect('/structure'); } if ($obj = ormPages::get(system::url(2))) { if (isset($_SESSION['STRUCTURE_LIST_FLAG']) && $_SESSION['STRUCTURE_LIST_FLAG']) { ui::setBackButton('/structure/list/' . $obj->getParentId()); } else { ui::setBackButton('/structure/tree'); } ui::setNaviBar(lang::right('page_history') . ' ' . $obj->getClass()->getPadej(1)); ui::setHeader($obj->name); return ui::getHistoryTable($obj->id); } system::redirect('/structure'); }