diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index a1cd6f749891..d024e0261b4a 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -1181,15 +1181,12 @@ public static function checkTableHasData($tableName) { /** * @param $version - * + * @deprecated * @return bool */ public function checkVersion($version) { - $query = " -SELECT version -FROM civicrm_domain -"; - $dbVersion = CRM_Core_DAO::singleValueQuery($query); + CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_BAO_Domain::version'); + $dbVersion = CRM_Core_BAO_Domain::version(); return trim($version) == trim($dbVersion); } diff --git a/CRM/Upgrade/Form.php b/CRM/Upgrade/Form.php index 6eb65bf70d3f..2ab3c1c7e8d8 100644 --- a/CRM/Upgrade/Form.php +++ b/CRM/Upgrade/Form.php @@ -286,19 +286,6 @@ public function logVersion($newVersion) { return FALSE; } - /** - * @param $version - * - * @return bool - */ - public function checkVersion($version) { - $domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Domain', - $version, 'id', - 'version' - ); - return (bool) $domainID; - } - /** * @return array * @throws Exception