// Log the response if failed
if (count($response) == 0) {
// Queries depleted (as we count here!)
- DEBUG_LOG(__FUNCTION__."(".__LINE__."): Requested depleted. Maxmimum was: ".$_CONFIG['yoomedia_requests_total']);
+ DEBUG_LOG(__FUNCTION__, __LINE__, " Requested depleted. Maxmimum was: ".$_CONFIG['yoomedia_requests_total']);
} elseif (count($response) <= 10) {
// Log serialized raw response
- DEBUG_LOG(__FUNCTION__."(".__LINE__."): Raw response=".base64_encode(serialize($response)));
+ DEBUG_LOG(__FUNCTION__, __LINE__, " Raw response=".base64_encode(serialize($response)));
} // END - if
// Do we have some data there?
$return = $yoomediaTranslationTable[$type][$index];
} else {
// Not found!
- DEBUG_LOG(__FUNCTION__."(".__LINE__."): type={$type},index={$index} not found.");
+ DEBUG_LOG(__FUNCTION__, __LINE__, " type={$type},index={$index} not found.");
}
// Return value
$return = $yoomediaTranslationTable['error_codes'][$errorCode];
} else {
// Log missing entries
- DEBUG_LOG(__FUNCTION__."(".__LINE__."): errorCode={$errorCode}");
+ DEBUG_LOG(__FUNCTION__, __LINE__, " errorCode={$errorCode}");
}
// Return value