public function __construct() { parent::__construct(); $this->view = new View('/frontend/upgrade'); $this->setTheme('concrete'); $this->siteVersion = \Config::get('concrete.version_installed'); $this->checkSecurity(); \Cache::disableAll(); }
public function __construct() { parent::__construct(); $request = $this->request; $cID = $request->query->get('cID'); if ($cID) { $page = ConcretePage::getByID($cID); $this->setPageObject($page); $request->setCurrentPage($this->page); } }
public function __construct() { parent::__construct(); $request = $this->request; $fID = Loader::helper('security')->sanitizeInt($request->query->get('fID')); if ($fID) { $file = ConcreteFile::getByID($fID); if (is_object($file) && !$file->isError()) { $this->setFileObject($file); } else { throw new Exception(t('Invalid file.')); } } }