mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Replaced deprecated "log" function call
This commit is contained in:
parent
9f411b0c76
commit
24ee87224f
14 changed files with 101 additions and 160 deletions
|
@ -102,7 +102,7 @@ class System
|
|||
}
|
||||
|
||||
if ($st) {
|
||||
Logger::log('xml_status returning non_zero: ' . $st . " message=" . $message);
|
||||
Logger::notice('xml_status returning non_zero: ' . $st . " message=" . $message);
|
||||
}
|
||||
|
||||
header("Content-type: text/xml");
|
||||
|
@ -278,27 +278,27 @@ class System
|
|||
public static function isDirectoryUsable($directory, $check_writable = true)
|
||||
{
|
||||
if ($directory == '') {
|
||||
Logger::log('Directory is empty. This shouldn\'t happen.', Logger::DEBUG);
|
||||
Logger::info('Directory is empty. This shouldn\'t happen.');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!file_exists($directory)) {
|
||||
Logger::log('Path "' . $directory . '" does not exist for user ' . static::getUser(), Logger::DEBUG);
|
||||
Logger::info('Path "' . $directory . '" does not exist for user ' . static::getUser());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_file($directory)) {
|
||||
Logger::log('Path "' . $directory . '" is a file for user ' . static::getUser(), Logger::DEBUG);
|
||||
Logger::info('Path "' . $directory . '" is a file for user ' . static::getUser());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!is_dir($directory)) {
|
||||
Logger::log('Path "' . $directory . '" is not a directory for user ' . static::getUser(), Logger::DEBUG);
|
||||
Logger::info('Path "' . $directory . '" is not a directory for user ' . static::getUser());
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($check_writable && !is_writable($directory)) {
|
||||
Logger::log('Path "' . $directory . '" is not writable for user ' . static::getUser(), Logger::DEBUG);
|
||||
Logger::info('Path "' . $directory . '" is not writable for user ' . static::getUser());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue