Replacing some of the App::import by App::uses

This commit is contained in:
José Lorenzo Rodríguez 2010-12-08 23:15:18 -04:30
parent 848461f7a0
commit b8344ecd33
43 changed files with 127 additions and 147 deletions

View file

@ -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));