mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 17:42:41 +00:00
Replacing some of the App::import by App::uses
This commit is contained in:
parent
848461f7a0
commit
b8344ecd33
43 changed files with 127 additions and 147 deletions
|
@ -670,9 +670,7 @@ if (!function_exists('sortByKey')) {
|
|||
* @param string $message Message to write to log
|
||||
*/
|
||||
function LogError($message) {
|
||||
if (!class_exists('CakeLog')) {
|
||||
App::import('Core', 'CakeLog');
|
||||
}
|
||||
App::uses('CakeLog', 'Log');
|
||||
$bad = array("\n", "\r", "\t");
|
||||
$good = ' ';
|
||||
CakeLog::write('error', str_replace($bad, $good, $message));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue