mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Changing object constructor.
Adding visibility keyword.
This commit is contained in:
parent
cd42047dd5
commit
f13e70b936
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ class FileLog {
|
|||
* @param array $options Options for the FileLog, see above.
|
||||
* @return void
|
||||
*/
|
||||
function FileLog($options = array()) {
|
||||
function __construct($options = array()) {
|
||||
$options += array('path' => LOGS);
|
||||
$this->_path = $options['path'];
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ class FileLog {
|
|||
* @param string $message The message you want to log.
|
||||
* @return boolean success of write.
|
||||
*/
|
||||
function write($type, $message) {
|
||||
public function write($type, $message) {
|
||||
$debugTypes = array('notice', 'info', 'debug');
|
||||
|
||||
if ($type == 'error' || $type == 'warning') {
|
||||
|
|
Loading…
Reference in a new issue