From 0527cd8105bdaee593ec73e84c7d1e703be4eba6 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 26 Aug 2014 16:56:51 -0700 Subject: [PATCH] CRM_Core_BAO_File::delete() - Delete evil override This function's signature and semantics are incompatible with the parent class. I used grep to look for where the function is called -- and cannot find anything: * svngrep -i 'delete(.*,.*)' CRM/ api/ bin/ * svngrep -i 'file.*->delete * svngrep File::delete . --- CRM/Core/BAO/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/File.php b/CRM/Core/BAO/File.php index 3f0f0c3ccf..8bb38e85a8 100644 --- a/CRM/Core/BAO/File.php +++ b/CRM/Core/BAO/File.php @@ -210,12 +210,12 @@ class CRM_Core_BAO_File extends CRM_Core_DAO_File { /** * The $useWhere is used so that the signature matches the parent class - */ + * public function delete($useWhere = FALSE) { list($fileID, $entityID, $fieldID) = func_get_args(); self::deleteFileReferences($fileID, $entityID, $fieldID); - } + } */ /** * delete all the files and associated object associated with this -- 2.25.1