diff options
Diffstat (limited to 'includes/classes')
| -rw-r--r-- | includes/classes/class_localclient.php | 2 | ||||
| -rw-r--r-- | includes/classes/class_media.php | 2 | ||||
| -rw-r--r-- | includes/classes/class_module.php | 2 | ||||
| -rw-r--r-- | includes/classes/class_serviceclient.php | 9 |
4 files changed, 6 insertions, 9 deletions
diff --git a/includes/classes/class_localclient.php b/includes/classes/class_localclient.php index fc84e6c076..cb55fa0144 100644 --- a/includes/classes/class_localclient.php +++ b/includes/classes/class_localclient.php @@ -111,7 +111,6 @@ class LocalClient extends ServiceClient { { // privatize the gedcoms returned $gedrec = privatize_gedcom($indi["gedcom"]); - //AddToLog(substr($gedrec,0,50)); // set the fields that exist and return all the results that are not private if(preg_match("~".$query."~i",$gedrec)>0) { @@ -127,7 +126,6 @@ class LocalClient extends ServiceClient { $results_array[] = $person; } } -// AddToLog('Found '.count($results_array).' after privatizing'); // set the number of possible results //$results[0]['totalResults'] = count($results_array); $results_array = array_slice($results_array,$start,$max); diff --git a/includes/classes/class_media.php b/includes/classes/class_media.php index 0966ea2848..8916be9573 100644 --- a/includes/classes/class_media.php +++ b/includes/classes/class_media.php @@ -241,7 +241,7 @@ class Media extends GedcomRecord { if ($this->fileExists()) { // alert the admin if we cannot determine the mime type of an existing file // as the media firewall will be unable to serve this file properly - AddToLog(i18n::translate('Media Firewall error: >Unknown Mimetype< for file').' >'.$this->file.'<'); + AddToLog('Media Firewall error: >Unknown Mimetype< for file >'.$this->file.'<', 'media'); } } else { $this->mime=$mime[$this->ext]; diff --git a/includes/classes/class_module.php b/includes/classes/class_module.php index 6402d15701..ead12a8782 100644 --- a/includes/classes/class_module.php +++ b/includes/classes/class_module.php @@ -96,7 +96,7 @@ abstract class WT_Module { $array[$module_name]=new $class(); } else { // Module has been deleted from disk? Remove it from the database. - AddToLog("Module {$module_name} has been deleted from disk - deleting from database"); + AddToLog("Module {$module_name} has been deleted from disk - deleting from database", 'config'); WT_DB::prepare("DELETE FROM {$TBLPREFIX}module_privacy WHERE module_name=?")->execute(array($module_name)); WT_DB::prepare("DELETE FROM {$TBLPREFIX}module WHERE module_name=?")->execute(array($module_name)); } diff --git a/includes/classes/class_serviceclient.php b/includes/classes/class_serviceclient.php index a0cbf160f9..ceacd3d6ea 100644 --- a/includes/classes/class_serviceclient.php +++ b/includes/classes/class_serviceclient.php @@ -111,7 +111,6 @@ class ServiceClient extends GedcomRecord { if (!class_exists('Soap_Client') || $this->client_type=='PEAR:SOAP') { require_once './SOAP/Client.php'; - //AddToLog('Using PEAR:SOAP library'); // get the wsdl and cache it $wsdl = new SOAP_WSDL($this->url); //change the encoding style @@ -737,7 +736,7 @@ class ServiceClient extends GedcomRecord { $result = $this->soapClient->getGedcomRecord($this->SID, $xref); if (PEAR::isError($result) || isset($result->faultcode) || get_class($result)=='SOAP_Fault' || is_object($result)) { if (isset($result->faultstring)) { - AddToLog($result->faultstring); + AddToLog($result->faultstring, 'error'); print $result->faultstring; } return $localrec; @@ -763,7 +762,7 @@ class ServiceClient extends GedcomRecord { $result = $this->soapClient->getGedcomRecord($this->SID, $xref); if (PEAR::isError($result) || isset($result->faultcode) || is_object($result) && get_class($result)=='SOAP_Fault') { if (isset($result->faultstring)) { - AddToLog($result->faultstring); + AddToLog($result->faultstring, 'error'); print $result->faultstring; } return $localrec; @@ -802,8 +801,8 @@ class ServiceClient extends GedcomRecord { // If there are no changes between the local and remote copies if (PEAR::isError($person) || isset($person->faultcode) || get_class($person)=='SOAP_Fault' || isset($person->error_message_prefix)) { - if (isset($person->faultstring)) AddToLog($person->faultstring); - else AddToLog($person->message); + if (isset($person->faultstring)) AddToLog($person->faultstring, 'error'); + else AddToLog($person->message, 'edit'); //-- update the last change time $pos1 = strpos($localrec, "1 CHAN"); if ($pos1!==false) { |
