mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
🔊 N°3731 Log calls to deprecated files / PHP methods
POC for the log API was added in #193
This commit is contained in:
@@ -994,6 +994,8 @@ class ModelFactory
|
||||
*/
|
||||
function HasLoadErrors()
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('Errors are now sent by Exception');
|
||||
|
||||
return (count(self::$aLoadErrors) > 0);
|
||||
}
|
||||
|
||||
@@ -1003,6 +1005,8 @@ class ModelFactory
|
||||
*/
|
||||
function GetLoadErrors()
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('Errors are now sent by Exception');
|
||||
|
||||
return self::$aLoadErrors;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user