trimmed comment bloat. returning boolean on eloquent save.
This commit is contained in:
@@ -69,14 +69,7 @@ class Log {
|
||||
// -----------------------------------------------------
|
||||
$file = $directory.'/'.date('d').EXT;
|
||||
|
||||
// -----------------------------------------------------
|
||||
// Write the message to the log.
|
||||
// -----------------------------------------------------
|
||||
file_put_contents($file, date('Y-m-d H:i:s').' '.$type.' - '.$message.PHP_EOL, LOCK_EX | FILE_APPEND);
|
||||
|
||||
// -----------------------------------------------------
|
||||
// Set the log file permissions.
|
||||
// -----------------------------------------------------
|
||||
chmod($file, 0666);
|
||||
}
|
||||
|
||||
@@ -88,14 +81,7 @@ class Log {
|
||||
*/
|
||||
private static function make_directory($directory)
|
||||
{
|
||||
// -----------------------------------------------------
|
||||
// Create the directory.
|
||||
// -----------------------------------------------------
|
||||
mkdir($directory, 02777);
|
||||
|
||||
// -----------------------------------------------------
|
||||
// Set the directory permissions.
|
||||
// -----------------------------------------------------
|
||||
chmod($directory, 02777);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user