Skip to content

Commit

Permalink
Changing object constructor.
Browse files Browse the repository at this point in the history
Adding visibility keyword.
  • Loading branch information
markstory committed Apr 14, 2010
1 parent cd42047 commit f13e70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/log/file_log.php
Expand Up @@ -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'];
}
Expand All @@ -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') {
Expand Down

0 comments on commit f13e70b

Please sign in to comment.