public function pre_update() { if ($this->accessAdminPage(5)) { require_once dirname(__FILE__) . '/resources/update.php'; $updater = new Updater($this->parent); return $updater->preUpdate(); } else { $this->parent->parent->addHeader('Location', '/admin/modules/'); return new ActionResult($this, '/admin/modules/', 1, 'You are not allowed to do that', B_T_FAIL); } }