Skip to content
Permalink
Browse files

Changing object constructor.

Adding visibility keyword.
  • Loading branch information...
markstory committed Apr 14, 2010
1 parent cd42047 commit f13e70b9367c3104eb3508bb3ae5a27db0662564
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/log/file_log.php
@@ -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 @@ function FileLog($options = array()) {
* @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') {

0 comments on commit f13e70b

Please sign in to comment.
You can’t perform that action at this time.