/** * ISC_ADMIN_DESIGNMODE::RevertFile() * * @return */ protected function RevertFile() { // set the filename and content to the class variables $this->Set('FileName', $_REQUEST['File']); if (parent::RevertFile()) { // file reverted! $GLOBALS['FileRevertedOK'] = true; // Log this action $GLOBALS['ISC_CLASS_LOG']->LogAdminAction($_REQUEST['File']); $this->EditFile(); } else { // file didn't revert =( $GLOBALS['SavedOK'] = false; $this->EditFile(); } }